Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add arista eos show ip mroute detail template #2009

Merged
merged 16 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Value Filldown VRF (\S+)
Value Filldown MULTICAST_GROUP (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
Value Required RPF_SOURCE (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
Value RP (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
Value UPTIME (\d+d\d+h|\d+:\d+:\d+)
Value FLAGS (\S+)
Value INCOMING_INTERFACE (\S+)
Value UPSTREAM_JOINED_STATE (\S+)
Value UPSTREAM_RPT_JOINED_STATE (\S+)
Value List OUTGOING_INTERFACE_LIST (\S+)

Start
^VRF:${VRF}
^PIM
^RPF
^\s+M\s-
^Flags
^\s{4}[RWIHZANTVF]\s-
^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) -> Continue.Record
^${MULTICAST_GROUP}

This comment was marked as outdated.

^\s{2}(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) -> Continue.Record
^\s{2}${RPF_SOURCE}, ${UPTIME}, flags: ${FLAGS}
^\s{2}${RPF_SOURCE}, ${UPTIME}, RP ${RP}, flags: ${FLAGS}
^\s{4}Incoming interface: ${INCOMING_INTERFACE}
^\s{4}Outgoing interface list:
^\s{6}${OUTGOING_INTERFACE_LIST}$$
^\s{4}Interfaces not in OIL
^\s{6}\S+
^\s{4}\S -> Continue
^\s{4}Upstream joined state: ${UPSTREAM_JOINED_STATE}
^\s{4}Upstream RPT joined state: ${UPSTREAM_RPT_JOINED_STATE} -> Record
^\s{4}State summarization macros:
^\s{6}Could
^\s{6}Register
^\s{6}Join
^\s{6}RPT join desired
^\s{6}Prune
^\s{6}No interfaces in immediate olist
^\s{6}No interfaces in inherited olist
brandomando marked this conversation as resolved.
Show resolved Hide resolved
^.* -> Error

EOF
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ allied_telesis_awplus_show_arp.textfsm, .*, allied_telesis_awplus, sh[[ow]] ar[[
arista_eos_show_mac_security_participants_detail.textfsm, .*, arista_eos, sh[[ow]] ma[[c]] secu[[rity]] part[[icipants]] det[[ail]]
arista_eos_show_interfaces_transceiver_detail.textfsm, .*, arista_eos, sh[[ow]] inte[[rfaces]] tr[[ansceiver]] de[[tail]]
arista_eos_show_mac_security_mka_counters.textfsm, .*, arista_eos, sh[[ow]] ma[[c]] secu[[rity]] mk[[a]] count[[ers]]
arista_eos_show_ip_mroute_vrf_all_detail.textfsm, .*, arista_eos, sh[[ow]] i[[p]] m[[route]](?: vrf a[[ll]] )?d[[etail]]
arista_eos_show_environment_temperature.textfsm, .*, arista_eos, sh[[ow]] en[[vironment]] t[[emperature]]
arista_eos_show_ip_ospf_interface_brief.textfsm, .*, arista_eos, sh[[ow]] i[[p]] o[[spf]] int[[erface]] br[[ief]]
arista_eos_show_interfaces_description.textfsm, .*, arista_eos, sh[[ow]] int[[erfaces]] des[[cription]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
VRF:default
PIM Bidirectional Mode Multicast Routing Table
RPF route: U - From unicast routing table
M - From multicast routing table
PIM Sparse Mode Multicast Routing Table
Flags: E - Entry forwarding on the RPT, J - Joining to the SPT
R - RPT bit is set, S - SPT bit is set, L - Source is attached
W - Wildcard entry, X - External component interest
I - SG Include Join alert rcvd, P - Programmed in hardware
H - Joining SPT due to policy, D - Joining SPT due to protocol
Z - Entry marked for deletion, C - Learned from a DR via a register
A - Learned via Anycast RP Router, M - Learned via MSDP
N - May notify MSDP, K - Keepalive timer not running
T - Switching Incoming Interface, B - Learned via Border Router
V - Source is reachable via Evpn Tenant Domain
F - Learned via MVPN
RPF route: U - From unicast routing table
M - From multicast routing table
224.0.1.129
169.254.132.172, 118d18h, flags: PE
Incoming interface: Null
Upstream joined state: upNotJoined
Upstream RPT joined state: upRptNotJoined
State summarization macros:
Could register (S,G): False
Register stop (S,G): True
Join desired (S,G): False
Prune desired (S,G,Rpt): False
No interfaces in immediate olist (S,G): True
No interfaces in inherited olist (S,G): True
224.0.23.192
0.0.0.0, 38d14h, RP 204.14.0.136, flags: W
Incoming interface: Register
Outgoing interface list:
Ethernet2/1
Ethernet2/2
Upstream joined state: upJoined
Upstream RPT joined state: upRptNotJoined
State summarization macros:
Join desired (*,G): True
Join desired (*,*,RP): False
RPT join desired (*,G): True
No interfaces in immediate olist (*,G): False
No interfaces in immediate olist (*,*,G): True
192.26.98.17, 8:57:21, flags: PE
Incoming interface: Register
Outgoing interface list:
Ethernet2/1
Upstream joined state: upNotJoined
Upstream RPT joined state: upRptNotPruned
State summarization macros:
Could register (S,G): False
Register stop (S,G): False
Join desired (S,G): False
Prune desired (S,G,Rpt): False
No interfaces in immediate olist (S,G): True
No interfaces in inherited olist (S,G): False
224.0.23.190
0.0.0.0, 38d14h, RP 204.14.0.136, flags: W
Incoming interface: Register
Outgoing interface list:
Ethernet0/1
Upstream joined state: upJoined
Upstream RPT joined state: upRptNotJoined
State summarization macros:
Join desired (*,G): True
Join desired (*,*,RP): False
RPT join desired (*,G): True
No interfaces in immediate olist (*,G): False
No interfaces in immediate olist (*,*,G): True
10.205.227.165, 38d14h, flags: SBNP
Incoming interface: Ethernet32
Outgoing interface list:
Ethernet2/1
Interfaces not in OIL:
Ethernet0/1: Not DR, RPT Pruned
Upstream joined state: upJoined
Upstream RPT joined state: upRptNotPruned
State summarization macros:
Could register (S,G): True
Register stop (S,G): True
Join desired (S,G): True
Prune desired (S,G,Rpt): False
No interfaces in immediate olist (S,G): False
No interfaces in inherited olist (S,G): False
10.205.227.166, 18d7h, RP 204.14.0.136, flags: SBNP
Incoming interface: Ethernet32
Outgoing interface list:
Ethernet0/1
Ethernet2/1
Upstream joined state: upJoined
Upstream RPT joined state: upRptNotPruned
State summarization macros:
Could register (S,G): True
Register stop (S,G): True
Join desired (S,G): True
Prune desired (S,G,Rpt): False
No interfaces in immediate olist (S,G): False
No interfaces in inherited olist (S,G): False
VRF:FOO
PIM Bidirectional Mode Multicast Routing Table
RPF route: U - From unicast routing table
M - From multicast routing table
PIM Sparse Mode Multicast Routing Table
Flags: E - Entry forwarding on the RPT, J - Joining to the SPT
R - RPT bit is set, S - SPT bit is set, L - Source is attached
W - Wildcard entry, X - External component interest
I - SG Include Join alert rcvd, P - Programmed in hardware
H - Joining SPT due to policy, D - Joining SPT due to protocol
Z - Entry marked for deletion, C - Learned from a DR via a register
A - Learned via Anycast RP Router, M - Learned via MSDP
N - May notify MSDP, K - Keepalive timer not running
T - Switching Incoming Interface, B - Learned via Border Router
V - Source is reachable via Evpn Tenant Domain
F - Learned via MVPN
RPF route: U - From unicast routing table
M - From multicast routing table
224.0.1.130
169.254.132.173, 1d18h, flags: PE
Incoming interface: Null
Upstream joined state: upNotJoined
Upstream RPT joined state: upRptNotJoined
State summarization macros:
Could register (S,G): False
Register stop (S,G): True
Join desired (S,G): False
Prune desired (S,G,Rpt): False
No interfaces in immediate olist (S,G): True
No interfaces in inherited olist (S,G): True
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this YAML test data was regenerated with the helper scripts the keys would be in alphabetical order.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry... Friday afternoon, so I missed that one trying to get out the door ;-)

Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
parsed_sample:
- vrf: "default"
multicast_group: "224.0.1.129"
rpf_source: "169.254.132.172"
rp: ""
uptime: "118d18h"
flags: "PE"
incoming_interface: "Null"
outgoing_interface_list: []
upstream_joined_state: "upNotJoined"
upstream_rpt_joined_state: "upRptNotJoined"

- vrf: "default"
multicast_group: "224.0.23.192"
rpf_source: "0.0.0.0"
rp: "204.14.0.136"
uptime: "38d14h"
flags: "W"
incoming_interface: "Register"
upstream_joined_state: "upJoined"
upstream_rpt_joined_state: "upRptNotJoined"
outgoing_interface_list:
- "Ethernet2/1"
- "Ethernet2/2"

- vrf: "default"
multicast_group: "224.0.23.192"
rpf_source: "192.26.98.17"
rp: ""
uptime: "8:57:21"
flags: "PE"
incoming_interface: "Register"
outgoing_interface_list:
- "Ethernet2/1"
upstream_joined_state: "upNotJoined"
upstream_rpt_joined_state: "upRptNotPruned"

- vrf: "default"
multicast_group: "224.0.23.190"
rpf_source: "0.0.0.0"
rp: "204.14.0.136"
uptime: "38d14h"
flags: "W"
incoming_interface: "Register"
outgoing_interface_list:
- "Ethernet0/1"
upstream_joined_state: "upJoined"
upstream_rpt_joined_state: "upRptNotJoined"

- vrf: "default"
multicast_group: "224.0.23.190"
rpf_source: "10.205.227.165"
rp: ""
uptime: "38d14h"
flags: "SBNP"
incoming_interface: "Ethernet32"
outgoing_interface_list:
- "Ethernet2/1"
upstream_joined_state: "upJoined"
upstream_rpt_joined_state: "upRptNotPruned"

- vrf: "default"
multicast_group: "224.0.23.190"
rpf_source: "10.205.227.166"
rp: "204.14.0.136"
uptime: "18d7h"
flags: "SBNP"
incoming_interface: "Ethernet32"
outgoing_interface_list:
- "Ethernet0/1"
- "Ethernet2/1"
upstream_joined_state: "upJoined"
upstream_rpt_joined_state: "upRptNotPruned"

- vrf: "FOO"
multicast_group: "224.0.1.130"
rpf_source: "169.254.132.173"
rp: ""
uptime: "1d18h"
flags: "PE"
incoming_interface: "Null"
outgoing_interface_list: []
upstream_joined_state: "upNotJoined"
upstream_rpt_joined_state: "upRptNotJoined"