From b063b87abc95e3ced9fd2e988eb37bc6efd911b5 Mon Sep 17 00:00:00 2001 From: CursedEnvy Date: Tue, 4 Feb 2025 12:01:50 +0100 Subject: [PATCH 1/2] This seems a typo to me, other templates use protocol --- .../templates/hp_comware_display_ip_routing-table.textfsm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ntc_templates/templates/hp_comware_display_ip_routing-table.textfsm b/ntc_templates/templates/hp_comware_display_ip_routing-table.textfsm index 6225d66484..33465d3795 100644 --- a/ntc_templates/templates/hp_comware_display_ip_routing-table.textfsm +++ b/ntc_templates/templates/hp_comware_display_ip_routing-table.textfsm @@ -1,6 +1,6 @@ Value Filldown NETWORK (\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}) Value Filldown PREFIX_LENGTH (\d{1,2}) -Value Filldown PROTOCAL (\w+) +Value Filldown PROTOCOL (\w+) Value Filldown DISTANCE (\d{1,3}) Value Filldown METRIC (\d+) Value Required NEXTHOP_IP (\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}) @@ -10,10 +10,10 @@ Start ^Destination\/Mask -> Routes Routes - ^${NETWORK}\/${PREFIX_LENGTH}\s+${PROTOCAL}\s+${DISTANCE}\s+${METRIC}\s+${NEXTHOP_IP}\s+${NEXTHOP_IF} -> Record + ^${NETWORK}\/${PREFIX_LENGTH}\s+${PROTOCOL}\s+${DISTANCE}\s+${METRIC}\s+${NEXTHOP_IP}\s+${NEXTHOP_IF} -> Record # for comware v7 ecmp ^\s+${NEXTHOP_IP}\s+${NEXTHOP_IF} -> Record # for comware v5 ecmp - ^\s+${PROTOCAL}\s+${DISTANCE}\s+${METRIC}\s+${NEXTHOP_IP}\s+${NEXTHOP_IF} -> Record + ^\s+${PROTOCOL}\s+${DISTANCE}\s+${METRIC}\s+${NEXTHOP_IP}\s+${NEXTHOP_IF} -> Record ^\s*$$ ^. -> Error From d409c7f530b19bc18885299a6ac6c91c9c5a93a9 Mon Sep 17 00:00:00 2001 From: CursedEnvy Date: Tue, 4 Feb 2025 18:01:29 +0100 Subject: [PATCH 2/2] fix: forgot to adapt the generated yml file --- .../hp_comware_display_ip_routing-table.yml | 62 +++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/tests/hp_comware/display_ip_routing-table/hp_comware_display_ip_routing-table.yml b/tests/hp_comware/display_ip_routing-table/hp_comware_display_ip_routing-table.yml index 391a7b4427..7736fb80b5 100644 --- a/tests/hp_comware/display_ip_routing-table/hp_comware_display_ip_routing-table.yml +++ b/tests/hp_comware/display_ip_routing-table/hp_comware_display_ip_routing-table.yml @@ -6,214 +6,214 @@ parsed_sample: nexthop_if: "InLoop0" nexthop_ip: "127.0.0.1" prefix_length: "32" - protocal: "Direct" + protocol: "Direct" - distance: "150" metric: "1" network: "9.72.47.0" nexthop_if: "Vlan1600" nexthop_ip: "172.16.43.2" prefix_length: "24" - protocal: "OSPF" + protocol: "OSPF" - distance: "150" metric: "1" network: "9.72.47.0" nexthop_if: "Vlan1601" nexthop_ip: "172.16.43.6" prefix_length: "24" - protocal: "OSPF" + protocol: "OSPF" - distance: "10" metric: "14" network: "10.1.0.0" nexthop_if: "Vlan1600" nexthop_ip: "172.16.43.2" prefix_length: "16" - protocal: "OSPF" + protocol: "OSPF" - distance: "10" metric: "14" network: "10.1.0.0" nexthop_if: "Vlan1601" nexthop_ip: "172.16.43.6" prefix_length: "16" - protocal: "OSPF" + protocol: "OSPF" - distance: "60" metric: "0" network: "10.1.14.0" nexthop_if: "Vlan1920" nexthop_ip: "172.16.39.2" prefix_length: "24" - protocal: "Static" + protocol: "Static" - distance: "60" metric: "0" network: "0.0.0.0" nexthop_if: "GE0/1" nexthop_ip: "192.168.56.1" prefix_length: "0" - protocal: "Static" + protocol: "Static" - distance: "60" metric: "0" network: "1.1.1.0" nexthop_if: "GE0/1" nexthop_ip: "192.168.56.1" prefix_length: "24" - protocal: "Static" + protocol: "Static" - distance: "60" metric: "0" network: "1.1.1.0" nexthop_if: "GE0/2" nexthop_ip: "192.168.56.2" prefix_length: "24" - protocal: "Static" + protocol: "Static" - distance: "60" metric: "0" network: "1.1.1.0" nexthop_if: "GE0/3" nexthop_ip: "192.168.56.3" prefix_length: "24" - protocal: "Static" + protocol: "Static" - distance: "0" metric: "0" network: "127.0.0.0" nexthop_if: "InLoop0" nexthop_ip: "127.0.0.1" prefix_length: "8" - protocal: "Direct" + protocol: "Direct" - distance: "0" metric: "0" network: "127.0.0.0" nexthop_if: "InLoop0" nexthop_ip: "127.0.0.1" prefix_length: "32" - protocal: "Direct" + protocol: "Direct" - distance: "0" metric: "0" network: "127.0.0.1" nexthop_if: "InLoop0" nexthop_ip: "127.0.0.1" prefix_length: "32" - protocal: "Direct" + protocol: "Direct" - distance: "0" metric: "0" network: "127.255.255.255" nexthop_if: "InLoop0" nexthop_ip: "127.0.0.1" prefix_length: "32" - protocal: "Direct" + protocol: "Direct" - distance: "0" metric: "0" network: "192.168.56.0" nexthop_if: "GE0/1" nexthop_ip: "192.168.56.101" prefix_length: "24" - protocal: "Direct" + protocol: "Direct" - distance: "0" metric: "0" network: "192.168.56.0" nexthop_if: "GE0/1" nexthop_ip: "192.168.56.101" prefix_length: "32" - protocal: "Direct" + protocol: "Direct" - distance: "0" metric: "0" network: "192.168.56.101" nexthop_if: "InLoop0" nexthop_ip: "127.0.0.1" prefix_length: "32" - protocal: "Direct" + protocol: "Direct" - distance: "0" metric: "0" network: "192.168.56.255" nexthop_if: "GE0/1" nexthop_ip: "192.168.56.101" prefix_length: "32" - protocal: "Direct" + protocol: "Direct" - distance: "0" metric: "0" network: "224.0.0.0" nexthop_if: "NULL0" nexthop_ip: "0.0.0.0" prefix_length: "4" - protocal: "Direct" + protocol: "Direct" - distance: "0" metric: "0" network: "224.0.0.0" nexthop_if: "NULL0" nexthop_ip: "0.0.0.0" prefix_length: "24" - protocal: "Direct" + protocol: "Direct" - distance: "0" metric: "0" network: "255.255.255.255" nexthop_if: "InLoop0" nexthop_ip: "127.0.0.1" prefix_length: "32" - protocal: "Direct" + protocol: "Direct" - distance: "130" metric: "0" network: "9.72.47.0" nexthop_if: "GE0/0/9" nexthop_ip: "172.16.42.221" prefix_length: "24" - protocal: "BGP" + protocol: "BGP" - distance: "130" metric: "0" network: "9.72.47.0" nexthop_if: "GE0/0/10" nexthop_ip: "172.16.42.229" prefix_length: "24" - protocal: "BGP" + protocol: "BGP" - distance: "10" metric: "13" network: "10.1.0.0" nexthop_if: "GE0/0/45" nexthop_ip: "172.16.43.82" prefix_length: "16" - protocal: "OSPF" + protocol: "OSPF" - distance: "150" metric: "1" network: "10.1.14.0" nexthop_if: "RAGG40" nexthop_ip: "172.16.43.1" prefix_length: "24" - protocal: "O_ASE" + protocol: "O_ASE" - distance: "150" metric: "1" network: "10.1.208.0" nexthop_if: "GE0/0/45" nexthop_ip: "172.16.43.82" prefix_length: "20" - protocal: "O_ASE" + protocol: "O_ASE" - distance: "130" metric: "0" network: "10.210.0.0" nexthop_if: "GE9/1/3.1132" nexthop_ip: "10.6.12.106" prefix_length: "16" - protocal: "BGP" + protocol: "BGP" - distance: "130" metric: "0" network: "10.210.4.0" nexthop_if: "GE0/0/9" nexthop_ip: "172.16.42.221" prefix_length: "24" - protocal: "BGP" + protocol: "BGP" - distance: "130" metric: "0" network: "10.210.4.0" nexthop_if: "GE0/0/10" nexthop_ip: "172.16.42.229" prefix_length: "24" - protocal: "BGP" + protocol: "BGP" - distance: "150" metric: "1" network: "10.210.4.201" nexthop_if: "RAGG44" nexthop_ip: "172.16.43.10" prefix_length: "32" - protocal: "O_ASE" + protocol: "O_ASE" - distance: "130" metric: "0" network: "10.211.0.0" nexthop_if: "GE9/1/1.1114" nexthop_ip: "10.6.12.86" prefix_length: "16" - protocal: "BGP" + protocol: "BGP"