Skip to content

Commit

Permalink
Extreme value names fix (#1557)
Browse files Browse the repository at this point in the history
* Add new platform 'extreme' + 6 templates (without tests)

* Fix template for 'show ipconfig' and add tests

* Fix template for 'show ports description' and add tests

* Fix template for 'show ports information' and add tests

* rebase show ports description

* Fix template for 'show sharing' and add tests

* Fix template for 'show vlan description' and add tests

* Fix template for 'show ports information detail' and add tests

* Update ntc_templates/templates/extreme_show_ports_description.textfsm

Co-authored-by: Josh VanDeraa <[email protected]>

* Update ntc_templates/templates/extreme_show_ports_information.textfsm

Co-authored-by: Josh VanDeraa <[email protected]>

* Update ntc_templates/templates/extreme_show_vlan_description.textfsm

Co-authored-by: Josh VanDeraa <[email protected]>

* Update ntc_templates/templates/extreme_show_ports_information_detail.textfsm

Co-authored-by: Josh VanDeraa <[email protected]>

* Fix value names

---------

Co-authored-by: pskliarenko <“[email protected]”>
Co-authored-by: Maxim Shpak <[email protected]>
Co-authored-by: Josh VanDeraa <[email protected]>
  • Loading branch information
4 people authored Nov 6, 2023
1 parent 2e6bfd7 commit d296134
Show file tree
Hide file tree
Showing 8 changed files with 182 additions and 182 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ Start

Ports
^(\s*=+)+\s*$$
^\s*${PORT}(?:\s+${DESCRIPTION})?\s*$$ -> Record
^\s*${INTERFACE}(?:\s+${DESCRIPTION})?\s*$$ -> Record
^\s*
^. -> Error
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Start
Ports
^State\s+/OAM\s+UPS\s+STP\s+VLAN\s+Proto\s+Size\s+profile\s+Master\*$$
^(\s*=+)+\s*$$
^\s*${PORT}\s+${FLAGS}\s+${LINK_STATE}\s+${ELSM}\s*/\s*${OAM}\s+${LINK_UPS}\s+${NUM_STP}\s+${NUM_VLAN}\s+${NUM_PROTO}\s+${JUMBO_SIZE}\s+${QOS_PROFILE}(?:\s+${LOAD_MASTER})?\s*$$ -> Record
^\s*${INTERFACE}\s+${FLAGS}\s+${LINK_STATE}\s+${ELSM}\s*/\s*${OAM}\s+${LINK_UPS}\s+${NUM_STP}\s+${NUM_VLAN}\s+${NUM_PROTO}\s+${JUMBO_SIZE}\s+${QOS_PROFILE}(?:\s+${LOAD_MASTER})?\s*$$ -> Record
^\s*>\s+indicates\s+Port\s+Display\s+Name\s+truncated\s+past\s+8\s+characters\s*$$
^\s*Flags\s+:\s+a\s+-\s+Load\s+Sharing\s+Algorithm\s+address-based,\s+D\s+-\s+Port\s+Disabled,\s*$$
^\s*e\s+-\s+Extreme\s+Discovery\s+Protocol\s+Enabled,\s+E\s+-\s+Port\s+Enabled,\s*$$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Value List VLAN_ID (\d+)

Start
^\s*Port:.*$$ -> Continue.Record
^\s*Port:\s*${PORT}\s*$$
^\s*Port:\s*${INTERFACE}\s*$$
^\s*Description\s+String:\s*\"${DESCRIPTION}\"\s*$$
^\s*Virtual-router:\s*${VIRTUAL_ROUTER}\s*$$
^\s*Type:\s*${TYPE}\s*$$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Start

VlanTable
^(\s*=+)+\s*$$
^\s*${NAME}\s+${ID}(?:\s+${DESCRIPTION})?\s*$$ -> Record
^\s*${VLAN_NAME}\s+${VLAN_ID}(?:\s+${DESCRIPTION})?\s*$$ -> Record
^\s*>\s+Indicates\s+description\s+string\s+truncated\s+past\s+\d+\s+characters\s*$$
^\s*Total\s+number\s+of\s+VLAN\(s\)\s*:\s*\d+\s*$$
^\s*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,145 +2,145 @@
parsed_sample:
- description: "AggregateLink"
display_string: ""
port: "1"
interface: "1"
- description: ""
display_string: ""
port: "2"
interface: "2"
- description: ""
display_string: ""
port: "3"
interface: "3"
- description: ""
display_string: ""
port: "4"
interface: "4"
- description: "MX5-2 - xe0/0/3"
display_string: ""
port: "5"
interface: "5"
- description: "BLADE-3 - VC1-4"
display_string: ""
port: "6"
interface: "6"
- description: "BLADE-3 - VC2-4"
display_string: ""
port: "7"
interface: "7"
- description: "BGW-R1 - xe0/1/1 (LAG7)"
display_string: ""
port: "8"
interface: "8"
- description: "FREE"
display_string: ""
port: "9"
interface: "9"
- description: "SRV-R1 - xe-0/0/1 (LAG6)"
display_string: ""
port: "10"
interface: "10"
- description: "3COM - Gi1/0/26 Link for PIM"
display_string: ""
port: "11"
interface: "11"
- description: "C4948-1 - te1/49"
display_string: ""
port: "12"
interface: "12"
- description: "Eltex3124-7 - te1/0/1"
display_string: ""
port: "13"
interface: "13"
- description: "Eltex3124-6 - te1/0/1"
display_string: ""
port: "14"
interface: "14"
- description: "Eltex3124-5 - te1/0/1"
display_string: ""
port: "15"
interface: "15"
- description: "Eltex3124-4 - te1/0/1"
display_string: ""
port: "16"
interface: "16"
- description: "MX5-1 - xe-0/0/3"
display_string: ""
port: "17"
interface: "17"
- description: "MX5-1 - xe-0/0/1"
display_string: ""
port: "18"
interface: "18"
- description: "CCR1036 - sfp1"
display_string: ""
port: "19"
interface: "19"
- description: ""
display_string: ""
port: "20"
interface: "20"
- description: ""
display_string: ""
port: "21"
interface: "21"
- description: "RS-CORE-1 - Gi0/1"
display_string: ""
port: "22"
interface: "22"
- description: ""
display_string: ""
port: "23"
interface: "23"
- description: "Uplink-GARS"
display_string: ""
port: "24"
interface: "24"
- description: "CRM-139204"
display_string: ""
port: "25"
interface: "25"
- description: "FREE"
display_string: ""
port: "26"
interface: "26"
- description: "FREE"
display_string: ""
port: "27"
interface: "27"
- description: "FREE"
display_string: ""
port: "28"
interface: "28"
- description: "N3K-2 - eth1/1 (LAG29)"
display_string: ""
port: "29"
interface: "29"
- description: "3COM - Te1/1/1"
display_string: ""
port: "30"
interface: "30"
- description: "FREE"
display_string: ""
port: "31"
interface: "31"
- description: ""
display_string: ""
port: "32"
interface: "32"
- description: "N9K-1 - eth1/46 (LAG33)"
display_string: ""
port: "33"
interface: "33"
- description: "N3K-2 - eth1/2 (LAG29)"
display_string: ""
port: "34"
interface: "34"
- description: "N9K-1 - eth1/47 (LAG33)"
display_string: ""
port: "35"
interface: "35"
- description: "Carbon-Reductor-NetXtreme-1 MIRROR"
display_string: ""
port: "36"
interface: "36"
- description: "VoipMonitor_Mirror"
display_string: ""
port: "37"
interface: "37"
- description: "Eltex3324-1 - te1/0/1 (LAG38)"
display_string: ""
port: "38"
interface: "38"
- description: "Eltex3324-1 - te1/0/2 (LAG38)"
display_string: ""
port: "39"
interface: "39"
- description: "FREE"
display_string: ""
port: "40"
interface: "40"
- description: "FREE"
display_string: ""
port: "41"
interface: "41"
- description: "BLADE-2-VC2 - VC8"
display_string: ""
port: "42"
interface: "42"
- description: "Storage-SMicro - eth0"
display_string: ""
port: "43"
interface: "43"
- description: "SCST-SSD_Cache - eth1"
display_string: ""
port: "44"
interface: "44"
- description: "Eltex5248-1 - Te1/0/1"
display_string: ""
port: "45"
interface: "45"
- description: "VEEAM1 - eth1"
display_string: ""
port: "46"
interface: "46"
- description: "BLADE-1-VC2 - VC1"
display_string: ""
port: "47"
interface: "47"
- description: "BLADE-1-VC2 - VC8"
display_string: ""
port: "48"
interface: "48"
Loading

0 comments on commit d296134

Please sign in to comment.