-
Notifications
You must be signed in to change notification settings - Fork 721
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Template: juniper_junos_show_lacp_interfaces (#713)
- Loading branch information
1 parent
f278569
commit b235c25
Showing
4 changed files
with
112 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
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,23 @@ | ||
Value Required AGGREGATED_INTERFACE (\S+) | ||
Value List MEMBER_INTERFACE (\S+) | ||
Value List RECEIVE_STATE (\S+\s?\w+) | ||
Value List TRANSMIT_STATE (\S+\s?periodic) | ||
Value List MUX_STATE (\S+\s?\S*) | ||
|
||
Start | ||
^Aggregated -> Continue.Record | ||
^Aggregated\sinterface:\s${AGGREGATED_INTERFACE}(\s|$$) | ||
^\s+LACP\s+state: | ||
^\s+LACP\sprotocol: -> LACP_PROTO | ||
^\s+\S+ | ||
^\s*$$ | ||
^{master:\d+} | ||
^. -> Error | ||
|
||
LACP_PROTO | ||
^\s+${MEMBER_INTERFACE}\s+${RECEIVE_STATE}\s+${TRANSMIT_STATE}\s+${MUX_STATE}(\s|$$) | ||
^\s*$$ | ||
^Aggregated -> Continue.Record | ||
^Aggregated\sinterface:\s${AGGREGATED_INTERFACE}(\s|$$) -> Start | ||
^{master:\d+} | ||
^. -> Error |
38 changes: 38 additions & 0 deletions
38
tests/juniper_junos/show_lacp_interfaces/juniper_junos_show_lacp_interfaces.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,38 @@ | ||
Aggregated interface: ae33 | ||
LACP state: Role Exp Def Dist Col Syn Aggr Timeout Activity | ||
xe-0/0/0:0 Actor No No Yes Yes Yes Yes Fast Active | ||
xe-0/0/0:0 Partner No No Yes Yes Yes Yes Slow Active | ||
LACP protocol: Receive State Transmit State Mux State | ||
xe-0/0/0:0 Current Slow periodic Collecting distributing | ||
|
||
Aggregated interface: ae111 | ||
LACP state: Role Exp Def Dist Col Syn Aggr Timeout Activity | ||
et-0/0/32 Actor No No Yes Yes Yes Yes Fast Active | ||
et-0/0/32 Partner No No Yes Yes Yes Yes Fast Active | ||
et-0/0/33 Actor No No Yes Yes Yes Yes Fast Active | ||
et-0/0/33 Partner No No Yes Yes Yes Yes Fast Active | ||
LACP protocol: Receive State Transmit State Mux State | ||
et-0/0/32 Current Fast periodic Collecting distributing | ||
et-0/0/33 Current Fast periodic Collecting distributing | ||
|
||
Aggregated interface: ae112 | ||
LACP state: Role Exp Def Dist Col Syn Aggr Timeout Activity | ||
et-0/0/34 Actor No No Yes Yes Yes Yes Fast Active | ||
et-0/0/34 Partner No No Yes Yes Yes Yes Fast Active | ||
et-0/0/35 Actor No No Yes Yes Yes Yes Fast Active | ||
et-0/0/35 Partner No No Yes Yes Yes Yes Fast Active | ||
LACP protocol: Receive State Transmit State Mux State | ||
et-0/0/34 Current Fast periodic Collecting distributing | ||
et-0/0/35 Current Fast periodic Collecting distributing | ||
|
||
Aggregated interface: ae115 | ||
LACP state: Role Exp Def Dist Col Syn Aggr Timeout Activity | ||
et-0/0/25 Actor No No Yes Yes Yes Yes Fast Active | ||
et-0/0/25 Partner No No Yes Yes Yes Yes Fast Active | ||
et-0/0/29 Actor No No Yes Yes Yes Yes Fast Active | ||
et-0/0/29 Partner No No Yes Yes Yes Yes Fast Active | ||
LACP protocol: Receive State Transmit State Mux State | ||
et-0/0/25 Current Fast periodic Collecting distributing | ||
et-0/0/29 Current Fast periodic Collecting distributing | ||
|
||
{master:0} |
50 changes: 50 additions & 0 deletions
50
tests/juniper_junos/show_lacp_interfaces/juniper_junos_show_lacp_interfaces.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,50 @@ | ||
--- | ||
parsed_sample: | ||
- aggregated_interface: "ae33" | ||
member_interface: | ||
- "xe-0/0/0:0" | ||
receive_state: | ||
- "Current" | ||
transmit_state: | ||
- "Slow periodic" | ||
mux_state: | ||
- "Collecting distributing" | ||
- aggregated_interface: "ae111" | ||
member_interface: | ||
- "et-0/0/32" | ||
- "et-0/0/33" | ||
receive_state: | ||
- "Current" | ||
- "Current" | ||
transmit_state: | ||
- "Fast periodic" | ||
- "Fast periodic" | ||
mux_state: | ||
- "Collecting distributing" | ||
- "Collecting distributing" | ||
- aggregated_interface: "ae112" | ||
member_interface: | ||
- "et-0/0/34" | ||
- "et-0/0/35" | ||
receive_state: | ||
- "Current" | ||
- "Current" | ||
transmit_state: | ||
- "Fast periodic" | ||
- "Fast periodic" | ||
mux_state: | ||
- "Collecting distributing" | ||
- "Collecting distributing" | ||
- aggregated_interface: "ae115" | ||
member_interface: | ||
- "et-0/0/25" | ||
- "et-0/0/29" | ||
receive_state: | ||
- "Current" | ||
- "Current" | ||
transmit_state: | ||
- "Fast periodic" | ||
- "Fast periodic" | ||
mux_state: | ||
- "Collecting distributing" | ||
- "Collecting distributing" |