Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ipinfusion_ocnos_show_lldp_table template #1251

Merged
merged 1 commit into from
Dec 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,8 @@ huawei_vrp_display_acl_all.textfsm, .*, huawei_vrp, dis[[play]] acl(\si[[pv6]])?
huawei_vrp_display_startup.textfsm, .*, huawei_vrp, dis[[play]] star[[tup]]
huawei_vrp_display_version.textfsm, .*, huawei_vrp, dis[[play]] ver[[sion]]

ipinfusion_ocnos_show_lldp_table.textfsm, .*, ipinfusion_ocnos, show ll[[dp]] t[[able]]

juniper_junos_show_chassis_cluster_interfaces.textfsm, .*, juniper_junos, sh[[ow]] ch[[assis]] c[[luster]] i[[nterface]]
juniper_junos_show_ethernet-switching_table.textfsm, .*, juniper_junos, sh[[ow]] et[[hernet-switching]] t[[able]]
juniper_junos_show_chassis_cluster_status.textfsm, .*, juniper_junos, sh[[ow]] ch[[assis]] c[[luster]] s[[tatus]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Value LOCAL_INTERFACE (\S+)
Value NEIGHBOR (\S+)
Value NEIGHBOR_INTERFACE (\S+)
Value CAPABILITY (R|B|O|RO|RB|BR|BO|OR|OB|RBO|ROB|BRO|BOR|ORB|OBR)
Value NEIGHBOR_INTERFACE_DESCR (\S+)

Start
^Capability\s+codes:\s+\(R\)\s+Router,\s+\(B\)\s+Bridge,\s+\(O\)\s+Other
^LocalPort\s+RemoteDevice\s+RemotePortID\s+Capability\s+RemotePortDescr
^[-+\s+]+ -> Row
^. -> Error

Row
^${LOCAL_INTERFACE}\s+${NEIGHBOR}\s+${NEIGHBOR_INTERFACE}\s+${CAPABILITY}\s+${NEIGHBOR_INTERFACE_DESCR} -> Record
^-+
^[\w+\s+]*:\s+\d+
^. -> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Capability codes: (R) Router, (B) Bridge, (O) Other
LocalPort RemoteDevice RemotePortID Capability RemotePortDescr
----------- --------------- -------------- ------------ -----------------
Ethernet0 spine01 fortyGigE0/20 BR Ethernet20
Ethernet4 spine02 fortyGigE0/20 BR Ethernet20
Ethernet8 leaf01 fortyGigE0/20 BR Ethernet20
Ethernet12 leaf02 fortyGigE0/20 BR Ethernet20
Ethernet16 leaf03 fortyGigE0/24 BR Ethernet24
Ethernet20 leaf04 fortyGigE0/24 BR Ethernet24
eth0 mgmt-switch swp14 BR swp14
--------------------------------------------------
Total entries displayed: 7
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
parsed_sample:
- local_interface: "Ethernet0"
neighbor: "spine01"
neighbor_interface: "fortyGigE0/20"
capability: "BR"
neighbor_interface_descr: "Ethernet20"
- local_interface: "Ethernet4"
neighbor: "spine02"
neighbor_interface: "fortyGigE0/20"
capability: "BR"
neighbor_interface_descr: "Ethernet20"
- local_interface: "Ethernet8"
neighbor: "leaf01"
neighbor_interface: "fortyGigE0/20"
capability: "BR"
neighbor_interface_descr: "Ethernet20"
- local_interface: "Ethernet12"
neighbor: "leaf02"
neighbor_interface: "fortyGigE0/20"
capability: "BR"
neighbor_interface_descr: "Ethernet20"
- local_interface: "Ethernet16"
neighbor: "leaf03"
neighbor_interface: "fortyGigE0/24"
capability: "BR"
neighbor_interface_descr: "Ethernet24"
- local_interface: "Ethernet20"
neighbor: "leaf04"
neighbor_interface: "fortyGigE0/24"
capability: "BR"
neighbor_interface_descr: "Ethernet24"
- local_interface: "eth0"
neighbor: "mgmt-switch"
neighbor_interface: "swp14"
capability: "BR"
neighbor_interface_descr: "swp14"
1 change: 1 addition & 0 deletions tests/test_index_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"hp_comware",
"hp_procurve",
"huawei_vrp",
"ipinfusion_ocnos",
"juniper",
"juniper_junos",
"juniper_screenos",
Expand Down