-
Notifications
You must be signed in to change notification settings - Fork 734
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cisco_ios_show_dot1x_all
: Add new template (#308)
- Loading branch information
1 parent
8cdadd5
commit 0a64107
Showing
4 changed files
with
123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
Value Filldown SYSAUTHCONTROL (\w+) | ||
Value Filldown DOT1XVERSION (\d) | ||
Value Filldown CRITICAL_RECOVERY_DELAY (\d+) | ||
Value Filldown CRITICAL_EAPOL (\w+) | ||
Value Required INTERFACE (\S+) | ||
Value PAE (\w+) | ||
Value PORTCONTROL (\w+) | ||
Value CONTROLDIRECTION (\w+) | ||
Value HOSTMODE (\w+) | ||
Value REAUTHENTICATION (\w+) | ||
Value QUIETPERIOD (\d+) | ||
Value SERVERTIMEOUT (\d+) | ||
Value SUPPTIMEOUT (\d+) | ||
Value REAUTHPERIOD (\d+) | ||
Value REAUTHMAX (\d+) | ||
Value MASREQ (\d+) | ||
Value TXPERIOD (\d+) | ||
Value RATELIMITPERIOD (\d+) | ||
|
||
Start | ||
^Sysauthcontrol\s+${SYSAUTHCONTROL} | ||
^Dot1x Protocol Version\s+${DOT1XVERSION} | ||
^Critical Recovery Delay\s+${CRITICAL_RECOVERY_DELAY} | ||
^Critical EAPOL\s+${CRITICAL_EAPOL} | ||
^$$ -> Interfaces | ||
|
||
Interfaces | ||
^Dot1x Info for\s -> Continue.Record | ||
^Dot1x Info for\s${INTERFACE} | ||
^PAE\s+=\s${PAE} | ||
^PortControl\s+=\s${PORTCONTROL} | ||
^ControlDirection\s+=\s${CONTROLDIRECTION} | ||
^HostMode\s+=\s${HOSTMODE} | ||
^ReAuthentication\s+=\s${REAUTHENTICATION} | ||
^QuietPeriod\s+=\s${QUIETPERIOD} | ||
^ServerTimeout\s+=\s${SERVERTIMEOUT} | ||
^SuppTimeout\s+=\s${SUPPTIMEOUT} | ||
^ReAuthPeriod\s+=\s${REAUTHPERIOD} | ||
^ReAuthMax\s+=\s${REAUTHMAX} | ||
^MaxReq\s+=\s${MASREQ} | ||
^TxPeriod\s+=\s${TXPERIOD} | ||
^RateLimitPeriod\s+=\s+${RATELIMITPERIOD} | ||
^-+\s*$$ | ||
^\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
40 changes: 40 additions & 0 deletions
40
tests/cisco_ios/show_dot1x_all/cisco_ios_show_dot1x_all.parsed
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,40 @@ | ||
--- | ||
parsed_sample: | ||
|
||
- interface : "Ethernet1/0" | ||
reauthentication : "Disabled" | ||
sysauthcontrol : "Disabled" | ||
servertimeout : "30" | ||
supptimeout : "30" | ||
dot1xversion : "2" | ||
hostmode : "SINGLE_HOST" | ||
critical_recovery_delay : "100" | ||
reauthmax : "2" | ||
quietperiod : "60" | ||
reauthperiod : "3600" | ||
portcontrol : "AUTO" | ||
txperiod : "30" | ||
masreq : "2" | ||
ratelimitperiod : "0" | ||
critical_eapol : "Disabled" | ||
controldirection : "Both" | ||
pae : "AUTHENTICATOR" | ||
- interface : "Ethernet1/2" | ||
reauthentication : "Disabled" | ||
sysauthcontrol : "Disabled" | ||
servertimeout : "30" | ||
supptimeout : "30" | ||
dot1xversion : "2" | ||
hostmode : "SINGLE_HOST" | ||
critical_recovery_delay : "100" | ||
reauthmax : "2" | ||
quietperiod : "60" | ||
reauthperiod : "3600" | ||
portcontrol : "AUTO" | ||
txperiod : "30" | ||
masreq : "2" | ||
ratelimitperiod : "0" | ||
critical_eapol : "Disabled" | ||
controldirection : "Both" | ||
pae : "AUTHENTICATOR" | ||
|
37 changes: 37 additions & 0 deletions
37
tests/cisco_ios/show_dot1x_all/cisco_ios_show_dot1x_all.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,37 @@ | ||
Sysauthcontrol Disabled | ||
Dot1x Protocol Version 2 | ||
Critical Recovery Delay 100 | ||
Critical EAPOL Disabled | ||
|
||
Dot1x Info for Ethernet1/0 | ||
----------------------------------- | ||
PAE = AUTHENTICATOR | ||
PortControl = AUTO | ||
ControlDirection = Both | ||
HostMode = SINGLE_HOST | ||
ReAuthentication = Disabled | ||
QuietPeriod = 60 | ||
ServerTimeout = 30 | ||
SuppTimeout = 30 | ||
ReAuthPeriod = 3600 (Locally configured) | ||
ReAuthMax = 2 | ||
MaxReq = 2 | ||
TxPeriod = 30 | ||
RateLimitPeriod = 0 | ||
|
||
Dot1x Info for Ethernet1/2 | ||
----------------------------------- | ||
|
||
PAE = AUTHENTICATOR | ||
PortControl = AUTO | ||
ControlDirection = Both | ||
HostMode = SINGLE_HOST | ||
ReAuthentication = Disabled | ||
QuietPeriod = 60 | ||
ServerTimeout = 30 | ||
SuppTimeout = 30 | ||
ReAuthPeriod = 3600 (Locally configured) | ||
ReAuthMax = 2 | ||
MaxReq = 2 | ||
TxPeriod = 30 | ||
RateLimitPeriod = 0 |