-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add IOS sh ip dhcp binding template (#1476)
Co-authored-by: pskliarenko <“[email protected]”>
- Loading branch information
1 parent
4ea77d0
commit 2ab1e65
Showing
4 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
ntc_templates/templates/cisco_ios_show_ip_dhcp_binding.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,17 @@ | ||
Value IP_ADDRESS (\S+) | ||
Value HARDWARE_ADDRESS (\S+) | ||
Value EXPIRATION (\S+) | ||
Value TYPE (\S+) | ||
|
||
Start | ||
^\s*Bindings from all pools not associated with VRF:\s*$$ | ||
^\s*IP\s+address\s+Client-ID/(?:Hardware\s+address/(?:User\s+name)?)?\s+Lease expiration\s+Type\s*$$ -> DhcpTable | ||
^\s*$$ | ||
^. -> Error | ||
|
||
DhcpTable | ||
^\s*Hardware\s+address/\s*$$ | ||
^\s*User\s+name\s*$$ | ||
^\s*${IP_ADDRESS}\s+${HARDWARE_ADDRESS}\s+${EXPIRATION}\s+${TYPE}\s*$$ -> Record | ||
^\s*$$ | ||
^. -> Error |
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
6 changes: 6 additions & 0 deletions
6
tests/cisco_ios/show_ip_dhcp_binding/cisco_ios_show_ip_dhcp_binding.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,6 @@ | ||
Bindings from all pools not associated with VRF: | ||
IP address Client-ID/ Lease expiration Type | ||
Hardware address/ | ||
User name | ||
10.100.88.26 01aa.aaaa.aaaa.aa Infinite Manual | ||
10.100.88.197 01dd.dddd.dddd.dd Infinite Manual |
10 changes: 10 additions & 0 deletions
10
tests/cisco_ios/show_ip_dhcp_binding/cisco_ios_show_ip_dhcp_binding.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: | ||
- expiration: "Infinite" | ||
hardware_address: "01aa.aaaa.aaaa.aa" | ||
ip_address: "10.100.88.26" | ||
type: "Manual" | ||
- expiration: "Infinite" | ||
hardware_address: "01dd.dddd.dddd.dd" | ||
ip_address: "10.100.88.197" | ||
type: "Manual" |