Skip to content

Commit

Permalink
BugFix: WLC show interface - Allow for Unconfigured IPs (networktocod…
Browse files Browse the repository at this point in the history
  • Loading branch information
wvandeun authored Oct 27, 2020
1 parent 4d413d5 commit acd6c4d
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/cisco_wlc_ssh_show_interface_detailed_id.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Value MAC_ADDRESS (\w+\.\w+\.\w+|\w+\:\w+\:\w+\:\w+\:\w+\:\w+)
Value IP_ADDRESS (\d+.\d+.\d+.\d+)
Value IP_NETMASK (\d+.\d+.\d+.\d+)
Value IP_GATEWAY (\d+.\d+.\d+.\d+)
Value PRIMARY_DHCP_SERVER (\d+.\d+.\d+.\d+)
Value SECONDARY_DHCP_SERVER (\d+.\d+.\d+.\d+)
Value PRIMARY_DHCP_SERVER (\d+.\d+.\d+.\d+|Unconfigured)
Value SECONDARY_DHCP_SERVER (\d+.\d+.\d+.\d+|Unconfigured)

Start
^\s*Interface\s+Name\.+\s+${INTERFACE_NAME}\s*$$
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@


Interface Name................................... my-interface
MAC Address...................................... c0:12:43:56:78:90
IP Address....................................... 8.8.8.8
IP Netmask....................................... 255.255.254.0
IP Gateway....................................... 8.8.8.1
External NAT IP State............................ Disabled
External NAT IP Address.......................... 0.0.0.0
Link Local IPv6 Address.......................... fe80::c012:4356:7890:5643/64
STATE ........................................... NONE
IPv6 Address..................................... ::/128
STATE ........................................... NONE
IPv6 Gateway..................................... ::
IPv6 Gateway Mac Address......................... 00:00:00:00:00:00
STATE ........................................... NONE
VLAN............................................. 300
Quarantine-vlan.................................. 0
NAS-Identifier................................... none
Active Physical Port............................. LAG (13)
Primary Physical Port............................ LAG (13)
Backup Physical Port............................. Unconfigured
DHCP Proxy Mode.................................. Global
Primary DHCP Server.............................. Unconfigured
Secondary DHCP Server............................ Unconfigured
DHCP Option 82................................... Disabled
DHCP Option 82 bridge mode insertion............. Disabled
DHCP Option 6 Opendns Override................... Disabled
IPv4 ACL......................................... Unconfigured
mDNS Profile Name................................ Unconfigured
AP Manager....................................... No
Guest Interface.................................. No
3G VLAN.......................................... Disabled
L2 Multicast..................................... Enabled

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
parsed_sample:
- interface_name: "my-interface"
mac_address: "c0:12:43:56:78:90"
ip_address: "8.8.8.8"
ip_netmask: "255.255.254.0"
ip_gateway: "8.8.8.1"
primary_dhcp_server: "Unconfigured"
secondary_dhcp_server: "Unconfigured"

0 comments on commit acd6c4d

Please sign in to comment.