forked from networktocode/ntc-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Template: paloalto_panos_show_interface_management.textfsm (netwo…
- Loading branch information
1 parent
6d8c974
commit 5ad1807
Showing
4 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
templates/paloalto_panos_show_interface_management.textfsm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Value NAME (.+) | ||
Value MACADDRESS ([a-fA-F0-9]{2}\:[a-fA-F0-9]{2}\:[a-fA-F0-9]{2}\:[a-fA-F0-9]{2}\:[a-fA-F0-9]{2}\:[a-fA-F0-9]{2}) | ||
Value IPV4_ADDRESS (\S+) | ||
Value IPV4_NETMASK (\S+) | ||
Value IPV4_GATEWAY (\S+) | ||
Value IPV6_ADDRESS (\S+) | ||
Value IPV6_LINKLOCAL (\S+) | ||
Value IPV6_GATEWAY (\S+) | ||
|
||
Start | ||
^-+ | ||
^Name:\s+${NAME}$$ | ||
^Link\s+status | ||
^\s+Runtime | ||
^\s+Configured\s+link | ||
^MAC\s+address | ||
^\s+Port\s+MAC\s+address\s+${MACADDRESS} | ||
^Ip\s+address:\s+${IPV4_ADDRESS} | ||
^Netmask:\s+${IPV4_NETMASK} | ||
^Default\s+gateway:\s+${IPV4_GATEWAY} | ||
^Ipv6\s+address:\s+${IPV6_ADDRESS} | ||
^Ipv6\s+link\s+local\s+address:\s+${IPV6_LINKLOCAL} | ||
^Ipv6\s+default\s+gateway:(\s+${IPV6_GATEWAY})? | ||
^Logical\s+interface\s+counters | ||
^bytes\s+received | ||
^bytes\s+transmitted | ||
^packets\s+received | ||
^packets\s+transmitted | ||
^receive\s+errors | ||
^transmit\s+errors | ||
^receive\s+packets\s+dropped | ||
^transmit\s+packets\s+dropped | ||
^multicast\s+packets\s+received | ||
^\s*$$ | ||
^. -> Error |
32 changes: 32 additions & 0 deletions
32
tests/paloalto_panos/show_interface_management/show_interface_management1.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
|
||
------------------------------------------------------------------------------- | ||
Name: Management Interface | ||
Link status: | ||
Runtime link speed/duplex/state: 1000/full/up | ||
Configured link speed/duplex/state: auto/auto/auto | ||
MAC address: | ||
Port MAC address 08:66:1f:02:04:a3 | ||
|
||
Ip address: 10.0.1.5 | ||
Netmask: 255.255.255.0 | ||
Default gateway: 10.0.1.1 | ||
Ipv6 address: unknown | ||
Ipv6 link local address: fe80::a66:1fff:fe02:4a3/64 | ||
Ipv6 default gateway: | ||
------------------------------------------------------------------------------- | ||
|
||
|
||
------------------------------------------------------------------------------- | ||
Logical interface counters: | ||
------------------------------------------------------------------------------- | ||
bytes received 264279971 | ||
bytes transmitted 238725455 | ||
packets received 279836 | ||
packets transmitted 291248 | ||
receive errors 0 | ||
transmit errors 0 | ||
receive packets dropped 0 | ||
transmit packets dropped 0 | ||
multicast packets received 0 | ||
------------------------------------------------------------------------------- |
10 changes: 10 additions & 0 deletions
10
tests/paloalto_panos/show_interface_management/show_interface_management1.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
parsed_sample: | ||
- name: "Management Interface" | ||
macaddress: "08:66:1f:02:04:a3" | ||
ipv4_address: "10.0.1.5" | ||
ipv4_netmask: "255.255.255.0" | ||
ipv4_gateway: "10.0.1.1" | ||
ipv6_address: "unknown" | ||
ipv6_linklocal: "fe80::a66:1fff:fe02:4a3/64" | ||
ipv6_gateway: "" |