Skip to content

Commit 322d652

Browse files
authored
Merge pull request #2315 from julmanglano/pr/aruba-aoscx-show-interface-mgmt
Add aruba_aoscx show interface mgmt
2 parents f960f4c + ccf916c commit 322d652

8 files changed

Lines changed: 124 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
Value ADDRESS_MODE (\S+)
2+
Value ADMIN_STATE (\S+)
3+
Value LINK_STATE (\S+)
4+
Value MAC_ADDRESS (\S+)
5+
Value IPV4_ADDRESS (\S+)
6+
Value IPV4_PREFIX_LENGTH (\d+)
7+
Value IPV4_GATEWAY (\S+)
8+
Value IPV6_ADDRESS (\S+)
9+
Value IPV6_PREFIX_LENGTH (\d+)
10+
Value IPV6_LINK_LOCAL (\S+)
11+
Value IPV6_LINK_LOCAL_PREFIX_LENGTH (\d+)
12+
Value IPV6_GATEWAY (\S+)
13+
Value PRIMARY_DNS (\S+)
14+
Value SECONDARY_DNS (\S+)
15+
Value TERTIARY_DNS (\S+)
16+
17+
Start
18+
^\s*Address\s+Mode\s+:\s+${ADDRESS_MODE}\s*$$
19+
^\s*Admin\s+State\s+:\s+${ADMIN_STATE}\s*$$
20+
^\s*Link\s+State\s+:\s+${LINK_STATE}\s*$$
21+
^\s*Mac\s+Address\s+:\s+${MAC_ADDRESS}\s*$$
22+
^\s*IPv4\s+address/subnet-mask\s+:\s+${IPV4_ADDRESS}/${IPV4_PREFIX_LENGTH}\s*$$
23+
^\s*IPv4\s+address/subnet-mask\s+:\s*$$
24+
^\s*Default\s+gateway\s+IPv4\s+:\s+${IPV4_GATEWAY}\s*$$
25+
^\s*Default\s+gateway\s+IPv4\s+:\s*$$
26+
^\s*IPv6\s+address/prefix\s+:\s+${IPV6_ADDRESS}/${IPV6_PREFIX_LENGTH}\s*$$
27+
^\s*IPv6\s+address/prefix\s+:\s*$$
28+
^\s*IPv6\s+link\s+local\s+address/prefix\s*:\s+${IPV6_LINK_LOCAL}/${IPV6_LINK_LOCAL_PREFIX_LENGTH}\s*$$
29+
^\s*IPv6\s+link\s+local\s+address/prefix\s*:\s*$$
30+
^\s*Default\s+gateway\s+IPv6\s+:\s+${IPV6_GATEWAY}\s*$$
31+
^\s*Default\s+gateway\s+IPv6\s+:\s*$$
32+
^\s*Primary\s+Nameserver\s+:\s*${PRIMARY_DNS}?\s*$$
33+
^\s*Secondary\s+Nameserver\s+:\s*${SECONDARY_DNS}?\s*$$
34+
^\s*Tertiary\s+Nameserver\s+:\s*${TERTIARY_DNS}?\s*$$
35+
^\s*$$
36+
^. -> Error

ntc_templates/templates/index

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ aruba_aoscx_show_interface_dom_detail.textfsm , .*, aruba_aoscx, sh[[ow]] int[[e
120120
aruba_aoscx_show_ip_route_all-vrfs.textfsm, .*, aruba_aoscx, sh[[ow]] ip r[[oute]] a[[ll-vrfs]]
121121
aruba_aoscx_show_mac-address-table.textfsm, .*, aruba_aoscx, sh[[ow]] ma[[c-address-table]]
122122
aruba_aoscx_show_ntp_associations.textfsm, .*, aruba_aoscx, sh[[ow]] ntp as[[sociations]]
123+
aruba_aoscx_show_interface_mgmt.textfsm, .*, aruba_aoscx, sh[[ow]] int[[erface]] m[[gmt]]
123124
aruba_aoscx_show_arp_all-vrfs.textfsm, .*, aruba_aoscx, sh[[ow]] ar[[p]] a[[ll-vrfs]]
124125
aruba_aoscx_show_bfd_all-vrfs.textfsm, .*, aruba_aoscx, sh[[ow]] bf[[d]] a[[ll-vrfs]]
125126
aruba_aoscx_show_vsf_detail.textfsm, .*, aruba_aoscx, sh[[ow]] vsf d[[etail]]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Address Mode : static
2+
Admin State : up
3+
Link State : up
4+
Mac Address : 0c:cd:2c:aa:bb:cc
5+
IPv4 address/subnet-mask : 192.0.2.40/26
6+
Default gateway IPv4 :
7+
IPv6 address/prefix :
8+
IPv6 link local address/prefix: fe80::aabb:ccdd:eeff:11/64
9+
Default gateway IPv6 :
10+
Primary Nameserver :
11+
Secondary Nameserver :
12+
Tertiary Nameserver :
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
parsed_sample:
3+
- address_mode: "static"
4+
admin_state: "up"
5+
ipv4_address: "192.0.2.40"
6+
ipv4_gateway: ""
7+
ipv4_prefix_length: "26"
8+
ipv6_address: ""
9+
ipv6_gateway: ""
10+
ipv6_link_local: "fe80::aabb:ccdd:eeff:11"
11+
ipv6_link_local_prefix_length: "64"
12+
ipv6_prefix_length: ""
13+
link_state: "up"
14+
mac_address: "0c:cd:2c:aa:bb:cc"
15+
primary_dns: ""
16+
secondary_dns: ""
17+
tertiary_dns: ""
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Address Mode : dhcp
2+
Admin State : up
3+
Link State : up
4+
Mac Address : bc:d7:a5:aa:bb:cd
5+
IPv4 address/subnet-mask :
6+
Default gateway IPv4 :
7+
IPv6 address/prefix :
8+
IPv6 link local address/prefix: fe80::aabb:ccdd:eeff:22/64
9+
Default gateway IPv6 :
10+
Primary Nameserver :
11+
Secondary Nameserver :
12+
Tertiary Nameserver :
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
parsed_sample:
3+
- address_mode: "dhcp"
4+
admin_state: "up"
5+
ipv4_address: ""
6+
ipv4_gateway: ""
7+
ipv4_prefix_length: ""
8+
ipv6_address: ""
9+
ipv6_gateway: ""
10+
ipv6_link_local: "fe80::aabb:ccdd:eeff:22"
11+
ipv6_link_local_prefix_length: "64"
12+
ipv6_prefix_length: ""
13+
link_state: "up"
14+
mac_address: "bc:d7:a5:aa:bb:cd"
15+
primary_dns: ""
16+
secondary_dns: ""
17+
tertiary_dns: ""
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Address Mode : static
2+
Admin State : up
3+
Link State : up
4+
Mac Address : 9c:37:08:aa:bb:cc
5+
IPv4 address/subnet-mask : 192.0.2.1/25
6+
Default gateway IPv4 : 192.0.2.126
7+
IPv6 address/prefix :
8+
IPv6 link local address/prefix: fe80::aabb:ccdd:eeff:33/64
9+
Default gateway IPv6 :
10+
Primary Nameserver : 203.0.113.1
11+
Secondary Nameserver : 203.0.113.2
12+
Tertiary Nameserver :
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
parsed_sample:
3+
- address_mode: "static"
4+
admin_state: "up"
5+
ipv4_address: "192.0.2.1"
6+
ipv4_gateway: "192.0.2.126"
7+
ipv4_prefix_length: "25"
8+
ipv6_address: ""
9+
ipv6_gateway: ""
10+
ipv6_link_local: "fe80::aabb:ccdd:eeff:33"
11+
ipv6_link_local_prefix_length: "64"
12+
ipv6_prefix_length: ""
13+
link_state: "up"
14+
mac_address: "9c:37:08:aa:bb:cc"
15+
primary_dns: "203.0.113.1"
16+
secondary_dns: "203.0.113.2"
17+
tertiary_dns: ""

0 commit comments

Comments
 (0)