Skip to content

Commit

Permalink
New Template: juniper_junos_show_lacp_interfaces (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
ichisuke55 authored May 24, 2020
1 parent f278569 commit b235c25
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ juniper_junos_show_chassis_cluster_interfaces.textfsm, .*, juniper_junos, sh[[ow
juniper_junos_show_ethernet-switching_table.textfsm, .*, juniper_junos, sh[[ow]] et[[hernet-switching]] t[[able]]
juniper_junos_show_chassis_cluster_status.textfsm, .*, juniper_junos, sh[[ow]] ch[[assis]] c[[luster]] s[[tatus]]
juniper_junos_show_chassis_firmware.textfsm, .*, juniper_junos, sh[[ow]] ch[[assis]] fi[[rmware]]
juniper_junos_show_lacp_interfaces.textfsm, .*, juniper_junos, sh[[ow]] la[[cp]] i[[nterfaces]]
juniper_junos_show_arp_no-resolve.textfsm, .*, juniper_junos, sh[[ow]] a[[rp]] n[[o-resolve]]
juniper_junos_show_isis_adjacency.textfsm, .*, juniper_junos, sh[[ow]] is[[is]] ad[[jacency]]
juniper_junos_show_ospf_neighbor.textfsm, .*, juniper_junos, sh[[ow]] ospf n[[eighbor]]
Expand Down
23 changes: 23 additions & 0 deletions templates/juniper_junos_show_lacp_interfaces.textfsm
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
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}
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"

0 comments on commit b235c25

Please sign in to comment.