diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index c9be2be5e6..1d151415fe 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -715,6 +715,7 @@ mikrotik_routeros_system_routerboard_print.textfsm, .*, mikrotik_routeros, [[/]] mikrotik_routeros_interface_print_detail.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] p[[rint]] d[[etail]] mikrotik_routeros_interface_print_brief.textfsm, .*, mikrotik_routeros, [[/]]in[[terface]] p[[rint]] b[[rief]] mikrotik_routeros_ip_route_print_detail.textfsm, .*, mikrotik_routeros, [[/]]ip r[[oute]] p[[rint]] d[[etail]] +mikrotik_routeros_system_identity_print.textfsm, .*, mikrotik_routeros, [[/]]sy[[stem]] i[[dentity]] p[[rint]] mikrotik_routeros_system_resource_print.textfsm, .*, mikrotik_routeros, [[/]]sy[[stem]] re[[source]] p[[rint]] mikrotik_routeros_ip_route_print_terse.textfsm, .*, mikrotik_routeros, [[/]]ip(v6)? route print terse mikrotik_routeros_system_clock_print.textfsm, .*, mikrotik_routeros, [[/]]sy[[stem]] cl[[ock]] p[[rint]] diff --git a/ntc_templates/templates/mikrotik_routeros_system_identity_print.textfsm b/ntc_templates/templates/mikrotik_routeros_system_identity_print.textfsm new file mode 100644 index 0000000000..d07ad470e1 --- /dev/null +++ b/ntc_templates/templates/mikrotik_routeros_system_identity_print.textfsm @@ -0,0 +1,6 @@ +Value NAME (\S+) + +Start + ^\s*name:\s+${NAME}\s*$$ -> Record + ^\s*$$ + ^. -> Error diff --git a/tests/mikrotik_routeros/system_identity_print/mikrotik_routeros_system_identity_print.raw b/tests/mikrotik_routeros/system_identity_print/mikrotik_routeros_system_identity_print.raw new file mode 100644 index 0000000000..f931dae59c --- /dev/null +++ b/tests/mikrotik_routeros/system_identity_print/mikrotik_routeros_system_identity_print.raw @@ -0,0 +1 @@ + name: Mikrotik-Device_Name diff --git a/tests/mikrotik_routeros/system_identity_print/mikrotik_routeros_system_identity_print.yml b/tests/mikrotik_routeros/system_identity_print/mikrotik_routeros_system_identity_print.yml new file mode 100644 index 0000000000..4138af312b --- /dev/null +++ b/tests/mikrotik_routeros/system_identity_print/mikrotik_routeros_system_identity_print.yml @@ -0,0 +1,3 @@ +--- +parsed_sample: + - name: "Mikrotik-Device_Name"