diff --git a/ntc_templates/templates/eltex_show_interface.textfsm b/ntc_templates/templates/eltex_show_interface.textfsm index 0841cc9f2e..7a5308528c 100644 --- a/ntc_templates/templates/eltex_show_interface.textfsm +++ b/ntc_templates/templates/eltex_show_interface.textfsm @@ -1,4 +1,4 @@ -Value INTERFACE ([a-zA-Z\-]+\s*(\d+(/\d+)*)?) +Value INTERFACE ([a-zA-Z\-]+\s*(?:\d+(?:/\d+)*)?) Value STATUS (.*) Value IFACE_INDEX (\d+) Value MAC_ADDRESS ([a-zA-Z0-9]{2}(:[a-zA-Z0-9]{2}){5}) @@ -17,7 +17,8 @@ Value FEC_STATUS (\S+) Value MDIX_MODE_STATUS (\S+) Value IFACE_IN_PO_NUM (\d+) Value ACTIVE_IFACE_IN_PO_NUM (\d+) -Value List IFACE_IN_PO ([a-zA-Z\-]+\s*(\d+(/\d+)*)?) +Value MIN_IFACE_REQUIRED_IN_PO_NUM (\d+) +Value List IFACE_IN_PO ([a-zA-Z\-]+\s*(?:\d+(?:/\d+)*)?) Value List IFACE_IN_PO_BANDWIDTH (\d+[a-zA-Z]+) Value List IFACE_IN_PO_STATUS (.*) Value SUM_BANDWIDTH ([a-zA-Z0-9]+) @@ -48,6 +49,9 @@ Value List OUTPUT_QUEUE_PACKETS_PASSED (\d+) Value List OUTPUT_QUEUE_PACKETS_DROPPED (\d+) Start + ^\s*Load\s+balancing\s*:.*$$ + ^\s*Gathering\s+information...\s*$$ + ^\s*Channel\s+Ports\s*$$ -> Columns2 ^\s*-+\s*show\s+interfaces\s+\S+\s*-+\s*$$ -> Continue.Record ^\s*-+\s*show\s+interfaces\s+\S+\s*-+\s*$$ ^\s*${INTERFACE}\s+is\s+${STATUS}\s+\(.*\)\s*$$ @@ -66,7 +70,7 @@ Start ^\s*(?:\d+baseT/(?:Full|Half))\s+${LINK_MODES}\s*$$ -> Continue ^\s*(?:\d+baseT/(?:Full|Half)).*$$ ^\s*Link\s+aggregation\s+type\s+is\s+${LINK_AGGREGATION_TYPE}\s*$$ - ^\s*No.\s+of\s+members\s+in\s+this\s+port-channel:\s+${IFACE_IN_PO_NUM}\s+\(active\s+${ACTIVE_IFACE_IN_PO_NUM}\)\s*$$ + ^\s*No.\s+of\s+members\s+in\s+this\s+port-channel:\s+${IFACE_IN_PO_NUM}\s+\(active\s+${ACTIVE_IFACE_IN_PO_NUM}(?:,\s+minimum\s+required\s+${MIN_IFACE_REQUIRED_IN_PO_NUM})?\)\s*$$ ^\s*${IFACE_IN_PO},.*,\s*${IFACE_IN_PO_BANDWIDTH}\s+\(${IFACE_IN_PO_STATUS}\)\s*$$ ^\s*Active\s+bandwidth\s+is\s+${SUM_BANDWIDTH}\s*$$ ^\s*Flow\s+control\s+is\s+${FLOW_CONTROL_STATUS},\s+MDIX\s+mode\s+is\s+${MDIX_MODE_STATUS}\s*$$ @@ -87,3 +91,33 @@ Start ^\s*${OUTPUT_QUEUE_NUM}\s*:\s*${OUTPUT_QUEUE_PACKETS_PASSED}/${OUTPUT_QUEUE_PACKETS_DROPPED}\s*$$ ^\s*$$ ^. -> Error + +Columns2 + ^\s*-+(?:\s+-+)*\s*$$ + ^[a-zA-Z\-]+\s*(?:\d+(?:/\d+)*)?.* -> Continue.Record + ^${INTERFACE}(?:\s+.*?\:\s*${IFACE_IN_PO})?.*$$ -> Continue + ^[a-zA-Z\-]+\s*(\d+(/\d+)*)?\s+.*?\:\s*(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,){1}${IFACE_IN_PO}.*$$ -> Continue + ^[a-zA-Z\-]+\s*(\d+(/\d+)*)?\s+.*?\:\s*(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,){2}${IFACE_IN_PO}.*$$ -> Continue + ^[a-zA-Z\-]+\s*(\d+(/\d+)*)?\s+.*?\:\s*(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,){3}${IFACE_IN_PO}.*$$ -> Continue + ^[a-zA-Z\-]+\s*(\d+(/\d+)*)?\s+.*?\:\s*(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,){4}${IFACE_IN_PO}.*$$ -> Continue + ^[a-zA-Z\-]+\s*(\d+(/\d+)*)?\s+.*?\:\s*(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,){5}${IFACE_IN_PO}.*$$ -> Continue + ^[a-zA-Z\-]+\s*(\d+(/\d+)*)?\s+.*?\:\s*(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,){6}${IFACE_IN_PO}.*$$ -> Continue + ^[a-zA-Z\-]+\s*(\d+(/\d+)*)?\s+.*?\:\s*(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,){7}${IFACE_IN_PO}.*$$ -> Continue + ^[a-zA-Z\-]+\s*(\d+(/\d+)*)?\s+.*?\:\s*(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,){8}${IFACE_IN_PO}.*$$ -> Continue + ^[a-zA-Z\-]+\s*(\d+(/\d+)*)?\s+.*?\:\s*(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,){9}${IFACE_IN_PO}.*$$ -> Continue + ^[a-zA-Z\-]+\s*(\d+(/\d+)*)?\s+.*?\:\s*(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,){10}${IFACE_IN_PO}.*$$ -> Continue + ^\s+${IFACE_IN_PO}.*$$ -> Continue + ^\s+(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,){1}${IFACE_IN_PO}.*$$ -> Continue + ^\s+(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,){2}${IFACE_IN_PO}.*$$ -> Continue + ^\s+(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,){3}${IFACE_IN_PO}.*$$ -> Continue + ^\s+(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,){4}${IFACE_IN_PO}.*$$ -> Continue + ^\s+(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,){5}${IFACE_IN_PO}.*$$ -> Continue + ^\s+(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,){6}${IFACE_IN_PO}.*$$ -> Continue + ^\s+(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,){7}${IFACE_IN_PO}.*$$ -> Continue + ^\s+(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,){8}${IFACE_IN_PO}.*$$ -> Continue + ^\s+(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,){9}${IFACE_IN_PO}.*$$ -> Continue + ^\s+(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,){10}${IFACE_IN_PO}.*$$ -> Continue + ^[a-zA-Z\-]+\s*(\d+(/\d+)*)?(?:\s+.*?\:\s*(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,)*[a-zA-Z\-]+\s*(\d+(/\d+)*),?)?\s*$$ + ^\s+(?:[a-zA-Z\-]+\s*(\d+(/\d+)*)?,)*[a-zA-Z\-]+\s*(\d+(/\d+)*)\s*$$ + ^\s*$$ + ^. -> Error diff --git a/tests/eltex/show_interface/show_interface.raw b/tests/eltex/show_interface/show_interface_1.raw similarity index 100% rename from tests/eltex/show_interface/show_interface.raw rename to tests/eltex/show_interface/show_interface_1.raw diff --git a/tests/eltex/show_interface/show_interface.yml b/tests/eltex/show_interface/show_interface_1.yml similarity index 97% rename from tests/eltex/show_interface/show_interface.yml rename to tests/eltex/show_interface/show_interface_1.yml index 10b8f67703..1021dab6b0 100644 --- a/tests/eltex/show_interface/show_interface.yml +++ b/tests/eltex/show_interface/show_interface_1.yml @@ -32,6 +32,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:41" mdix_mode_status: "normal" media_type: "1G-Fiber" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "1439641" output_err_num: "0" @@ -105,6 +106,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:42" mdix_mode_status: "normal" media_type: "1G-Fiber" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "132202046940" output_err_num: "0" @@ -178,6 +180,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:43" mdix_mode_status: "normal" media_type: "1G-Fiber" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "19047121" output_err_num: "0" @@ -251,6 +254,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:44" mdix_mode_status: "normal" media_type: "1G-Fiber" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "14142282124" output_err_num: "0" @@ -323,6 +327,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:45" mdix_mode_status: "normal" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -395,6 +400,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:46" mdix_mode_status: "normal" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -467,6 +473,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:47" mdix_mode_status: "normal" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -539,6 +546,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:48" mdix_mode_status: "normal" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -611,6 +619,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:49" mdix_mode_status: "normal" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -683,6 +692,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:4a" mdix_mode_status: "normal" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -760,6 +770,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:4b" mdix_mode_status: "cross" media_type: "1G-Combo-C" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "1511338" output_err_num: "0" @@ -837,6 +848,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:4c" mdix_mode_status: "normal" media_type: "1G-Combo-C" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "1511357" output_err_num: "0" @@ -909,6 +921,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:4d" mdix_mode_status: "normal" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -981,6 +994,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:4e" mdix_mode_status: "normal" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -1053,6 +1067,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:4f" mdix_mode_status: "normal" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -1125,6 +1140,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:50" mdix_mode_status: "normal" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -1197,6 +1213,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:51" mdix_mode_status: "normal" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -1269,6 +1286,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:52" mdix_mode_status: "normal" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -1341,6 +1359,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:53" mdix_mode_status: "normal" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -1413,6 +1432,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:54" mdix_mode_status: "normal" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -1485,6 +1505,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:55" mdix_mode_status: "normal" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -1557,6 +1578,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:56" mdix_mode_status: "normal" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -1629,6 +1651,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:57" mdix_mode_status: "unknown" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -1701,6 +1724,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:58" mdix_mode_status: "unknown" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -1773,6 +1797,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:59" mdix_mode_status: "normal" media_type: "10G-Fiber" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "123471943176" output_err_num: "0" @@ -1845,6 +1870,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:5a" mdix_mode_status: "normal" media_type: "10G-Fiber" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "200541023323" output_err_num: "0" @@ -1917,6 +1943,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:5b" mdix_mode_status: "normal" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -1989,6 +2016,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:5c" mdix_mode_status: "normal" media_type: "10G-Fiber" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "20413128" output_err_num: "0" @@ -2067,6 +2095,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:41" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "324013229657" output_err_num: "0" @@ -2115,6 +2144,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -2163,6 +2193,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -2211,6 +2242,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -2259,6 +2291,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -2307,6 +2340,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -2355,6 +2389,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -2403,6 +2438,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -2451,6 +2487,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -2499,6 +2536,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -2547,6 +2585,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -2595,6 +2634,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -2643,6 +2683,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -2691,6 +2732,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -2739,6 +2781,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -2787,6 +2830,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -2835,6 +2879,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -2883,6 +2928,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -2931,6 +2977,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -2979,6 +3026,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3027,6 +3075,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3075,6 +3124,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3123,6 +3173,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3171,6 +3222,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3219,6 +3271,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3267,6 +3320,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3315,6 +3369,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3363,6 +3418,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3411,6 +3467,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3459,6 +3516,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3507,6 +3565,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3555,6 +3614,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3603,6 +3663,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3651,6 +3712,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3699,6 +3761,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3747,6 +3810,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3795,6 +3859,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3843,6 +3908,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3891,6 +3957,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3939,6 +4006,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -3987,6 +4055,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -4035,6 +4104,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -4083,6 +4153,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -4131,6 +4202,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -4179,6 +4251,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -4227,6 +4300,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -4275,6 +4349,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -4323,6 +4398,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1500" multicasts_num: "0" output_err_num: "0" @@ -4371,6 +4447,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1476" multicasts_num: "" output_err_num: "" @@ -4419,6 +4496,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1476" multicasts_num: "" output_err_num: "" @@ -4467,6 +4545,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1476" multicasts_num: "" output_err_num: "" @@ -4515,6 +4594,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1476" multicasts_num: "" output_err_num: "" @@ -4563,6 +4643,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1476" multicasts_num: "" output_err_num: "" @@ -4611,6 +4692,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1476" multicasts_num: "" output_err_num: "" @@ -4659,6 +4741,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1476" multicasts_num: "" output_err_num: "" @@ -4707,6 +4790,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1476" multicasts_num: "" output_err_num: "" @@ -4755,6 +4839,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1476" multicasts_num: "" output_err_num: "" @@ -4803,6 +4888,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1476" multicasts_num: "" output_err_num: "" @@ -4851,6 +4937,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1476" multicasts_num: "" output_err_num: "" @@ -4899,6 +4986,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1476" multicasts_num: "" output_err_num: "" @@ -4947,6 +5035,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1476" multicasts_num: "" output_err_num: "" @@ -4995,6 +5084,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1476" multicasts_num: "" output_err_num: "" @@ -5043,6 +5133,7 @@ parsed_sample: mac_address: "e8:28:c1:5c:02:40" mdix_mode_status: "" media_type: "" + min_iface_required_in_po_num: "" mtu: "1476" multicasts_num: "" output_err_num: "" diff --git a/tests/eltex/show_interface/show_interface_2.raw b/tests/eltex/show_interface/show_interface_2.raw new file mode 100644 index 0000000000..960e51b556 --- /dev/null +++ b/tests/eltex/show_interface/show_interface_2.raw @@ -0,0 +1,24 @@ +Po1 is up (connected) + Interface index is 1000 + Hardware is aggregated ethernet interface(s), MAC address is e8:28:c1:5b:b9:81 + Description: ZOO-N9K-1 - po21 + Interface MTU is 9000 + Link is up for 107 days, 9 hours, 2 minutes and 23 seconds + Link aggregation type is LACP + No. of members in this port-channel: 2 (active 2, minimum required 1) + tengigabitethernet1/0/1, full-duplex, LACP active, 10000Mbps (active) + tengigabitethernet1/0/2, full-duplex, LACP active, 10000Mbps (active) + Active bandwidth is 20000Mbps + 15 second input rate is 23371 Kbit/s + 15 second output rate is 1731 Kbit/s + 19932118172 packets input, 27095210105816 bytes received + 59626316 broadcasts, 19834472934 multicasts + 0 input errors, 0 FCS, 0 alignment + 0 oversize, 0 internal MAC + 0 pause frames received + 1669070202 packets output, 2242731647391 bytes sent + 1280227 broadcasts, 1598635115 multicasts + 0 output errors, 0 collisions + 0 excessive collisions, 0 late collisions + 0 pause frames transmitted + 0 symbol errors, 0 carrier, 0 SQE test error diff --git a/tests/eltex/show_interface/show_interface_2.yml b/tests/eltex/show_interface/show_interface_2.yml new file mode 100644 index 0000000000..a27a5809ea --- /dev/null +++ b/tests/eltex/show_interface/show_interface_2.yml @@ -0,0 +1,57 @@ +--- +parsed_sample: + - active_iface_in_po_num: "2" + alignments_num: "0" + broadcasts_num: "1280227" + bytes_received: "27095210105816" + bytes_sent: "2242731647391" + carrier_num: "0" + collisions_num: "0" + description: "ZOO-N9K-1 - po21" + downtime: "" + duplex_type: "" + excessive_collisions_num: "0" + fcs_num: "0" + fec_status: "" + flow_control_status: "" + iface_in_po: + - "tengigabitethernet1/0/1" + - "tengigabitethernet1/0/2" + iface_in_po_bandwidth: + - "10000Mbps" + - "10000Mbps" + iface_in_po_num: "2" + iface_in_po_status: + - "active" + - "active" + iface_index: "1000" + input_err_num: "0" + input_packets: "19932118172" + input_rate: "23371" + interface: "Po1" + internal_mac_num: "0" + late_collisions_num: "0" + link_aggregation_type: "LACP" + link_modes: [] + link_type: "" + mac_address: "e8:28:c1:5b:b9:81" + mdix_mode_status: "" + media_type: "" + min_iface_required_in_po_num: "1" + mtu: "9000" + multicasts_num: "1598635115" + output_err_num: "0" + output_packets: "1669070202" + output_queue_num: [] + output_queue_packets_dropped: [] + output_queue_packets_passed: [] + output_rate: "1731" + oversize_num: "0" + pause_frames_received: "0" + pause_frames_sent: "0" + speed: "" + sqe_test_err_num: "0" + status: "up" + sum_bandwidth: "20000Mbps" + symbol_err_num: "0" + uptime: "107 days, 9 hours, 2 minutes and 23 seconds" diff --git a/tests/eltex/show_interface/show_interface_3.raw b/tests/eltex/show_interface/show_interface_3.raw new file mode 100644 index 0000000000..79f4fc381e --- /dev/null +++ b/tests/eltex/show_interface/show_interface_3.raw @@ -0,0 +1,13 @@ +Load balancing: src-dst-mac. + +Gathering information... +Channel Ports +------- ----- +Po0 +Po1 Active: gi1/0/1 +Po10 Active: gi1/0/2,gi1/0/3,gi1/0/4, + gi1/0/5,gi1/0/6 +Po11 +Po15 Active: gi1/0/7,gi1/0/8 +Po20 Active: gi1/0/9,gi1/0/10,gi1/0/11, + gi1/0/12 diff --git a/tests/eltex/show_interface/show_interface_3.yml b/tests/eltex/show_interface/show_interface_3.yml new file mode 100644 index 0000000000..da132329f2 --- /dev/null +++ b/tests/eltex/show_interface/show_interface_3.yml @@ -0,0 +1,310 @@ +--- +parsed_sample: + - active_iface_in_po_num: "" + alignments_num: "" + broadcasts_num: "" + bytes_received: "" + bytes_sent: "" + carrier_num: "" + collisions_num: "" + description: "" + downtime: "" + duplex_type: "" + excessive_collisions_num: "" + fcs_num: "" + fec_status: "" + flow_control_status: "" + iface_in_po: + - "None" + iface_in_po_bandwidth: [] + iface_in_po_num: "" + iface_in_po_status: [] + iface_index: "" + input_err_num: "" + input_packets: "" + input_rate: "" + interface: "Po0" + internal_mac_num: "" + late_collisions_num: "" + link_aggregation_type: "" + link_modes: [] + link_type: "" + mac_address: "" + mdix_mode_status: "" + media_type: "" + min_iface_required_in_po_num: "" + mtu: "" + multicasts_num: "" + output_err_num: "" + output_packets: "" + output_queue_num: [] + output_queue_packets_dropped: [] + output_queue_packets_passed: [] + output_rate: "" + oversize_num: "" + pause_frames_received: "" + pause_frames_sent: "" + speed: "" + sqe_test_err_num: "" + status: "" + sum_bandwidth: "" + symbol_err_num: "" + uptime: "" + - active_iface_in_po_num: "" + alignments_num: "" + broadcasts_num: "" + bytes_received: "" + bytes_sent: "" + carrier_num: "" + collisions_num: "" + description: "" + downtime: "" + duplex_type: "" + excessive_collisions_num: "" + fcs_num: "" + fec_status: "" + flow_control_status: "" + iface_in_po: + - "gi1/0/1" + iface_in_po_bandwidth: [] + iface_in_po_num: "" + iface_in_po_status: [] + iface_index: "" + input_err_num: "" + input_packets: "" + input_rate: "" + interface: "Po1" + internal_mac_num: "" + late_collisions_num: "" + link_aggregation_type: "" + link_modes: [] + link_type: "" + mac_address: "" + mdix_mode_status: "" + media_type: "" + min_iface_required_in_po_num: "" + mtu: "" + multicasts_num: "" + output_err_num: "" + output_packets: "" + output_queue_num: [] + output_queue_packets_dropped: [] + output_queue_packets_passed: [] + output_rate: "" + oversize_num: "" + pause_frames_received: "" + pause_frames_sent: "" + speed: "" + sqe_test_err_num: "" + status: "" + sum_bandwidth: "" + symbol_err_num: "" + uptime: "" + - active_iface_in_po_num: "" + alignments_num: "" + broadcasts_num: "" + bytes_received: "" + bytes_sent: "" + carrier_num: "" + collisions_num: "" + description: "" + downtime: "" + duplex_type: "" + excessive_collisions_num: "" + fcs_num: "" + fec_status: "" + flow_control_status: "" + iface_in_po: + - "gi1/0/2" + - "gi1/0/3" + - "gi1/0/4" + - "gi1/0/5" + - "gi1/0/6" + iface_in_po_bandwidth: [] + iface_in_po_num: "" + iface_in_po_status: [] + iface_index: "" + input_err_num: "" + input_packets: "" + input_rate: "" + interface: "Po10" + internal_mac_num: "" + late_collisions_num: "" + link_aggregation_type: "" + link_modes: [] + link_type: "" + mac_address: "" + mdix_mode_status: "" + media_type: "" + min_iface_required_in_po_num: "" + mtu: "" + multicasts_num: "" + output_err_num: "" + output_packets: "" + output_queue_num: [] + output_queue_packets_dropped: [] + output_queue_packets_passed: [] + output_rate: "" + oversize_num: "" + pause_frames_received: "" + pause_frames_sent: "" + speed: "" + sqe_test_err_num: "" + status: "" + sum_bandwidth: "" + symbol_err_num: "" + uptime: "" + - active_iface_in_po_num: "" + alignments_num: "" + broadcasts_num: "" + bytes_received: "" + bytes_sent: "" + carrier_num: "" + collisions_num: "" + description: "" + downtime: "" + duplex_type: "" + excessive_collisions_num: "" + fcs_num: "" + fec_status: "" + flow_control_status: "" + iface_in_po: + - "None" + iface_in_po_bandwidth: [] + iface_in_po_num: "" + iface_in_po_status: [] + iface_index: "" + input_err_num: "" + input_packets: "" + input_rate: "" + interface: "Po11" + internal_mac_num: "" + late_collisions_num: "" + link_aggregation_type: "" + link_modes: [] + link_type: "" + mac_address: "" + mdix_mode_status: "" + media_type: "" + min_iface_required_in_po_num: "" + mtu: "" + multicasts_num: "" + output_err_num: "" + output_packets: "" + output_queue_num: [] + output_queue_packets_dropped: [] + output_queue_packets_passed: [] + output_rate: "" + oversize_num: "" + pause_frames_received: "" + pause_frames_sent: "" + speed: "" + sqe_test_err_num: "" + status: "" + sum_bandwidth: "" + symbol_err_num: "" + uptime: "" + - active_iface_in_po_num: "" + alignments_num: "" + broadcasts_num: "" + bytes_received: "" + bytes_sent: "" + carrier_num: "" + collisions_num: "" + description: "" + downtime: "" + duplex_type: "" + excessive_collisions_num: "" + fcs_num: "" + fec_status: "" + flow_control_status: "" + iface_in_po: + - "gi1/0/7" + - "gi1/0/8" + iface_in_po_bandwidth: [] + iface_in_po_num: "" + iface_in_po_status: [] + iface_index: "" + input_err_num: "" + input_packets: "" + input_rate: "" + interface: "Po15" + internal_mac_num: "" + late_collisions_num: "" + link_aggregation_type: "" + link_modes: [] + link_type: "" + mac_address: "" + mdix_mode_status: "" + media_type: "" + min_iface_required_in_po_num: "" + mtu: "" + multicasts_num: "" + output_err_num: "" + output_packets: "" + output_queue_num: [] + output_queue_packets_dropped: [] + output_queue_packets_passed: [] + output_rate: "" + oversize_num: "" + pause_frames_received: "" + pause_frames_sent: "" + speed: "" + sqe_test_err_num: "" + status: "" + sum_bandwidth: "" + symbol_err_num: "" + uptime: "" + - active_iface_in_po_num: "" + alignments_num: "" + broadcasts_num: "" + bytes_received: "" + bytes_sent: "" + carrier_num: "" + collisions_num: "" + description: "" + downtime: "" + duplex_type: "" + excessive_collisions_num: "" + fcs_num: "" + fec_status: "" + flow_control_status: "" + iface_in_po: + - "gi1/0/9" + - "gi1/0/10" + - "gi1/0/11" + - "gi1/0/12" + iface_in_po_bandwidth: [] + iface_in_po_num: "" + iface_in_po_status: [] + iface_index: "" + input_err_num: "" + input_packets: "" + input_rate: "" + interface: "Po20" + internal_mac_num: "" + late_collisions_num: "" + link_aggregation_type: "" + link_modes: [] + link_type: "" + mac_address: "" + mdix_mode_status: "" + media_type: "" + min_iface_required_in_po_num: "" + mtu: "" + multicasts_num: "" + output_err_num: "" + output_packets: "" + output_queue_num: [] + output_queue_packets_dropped: [] + output_queue_packets_passed: [] + output_rate: "" + oversize_num: "" + pause_frames_received: "" + pause_frames_sent: "" + speed: "" + sqe_test_err_num: "" + status: "" + sum_bandwidth: "" + symbol_err_num: "" + uptime: ""