Skip to content

Commit

Permalink
Feat(eos_cli_config_gen): add PIM sparse-mode interfaces in doc (#1848)
Browse files Browse the repository at this point in the history
Co-authored-by: Tony Reddy Goda <[email protected]>
  • Loading branch information
gmuloc and tgodaA authored Jun 3, 2022
1 parent 0094a6b commit 5b3f893
Show file tree
Hide file tree
Showing 11 changed files with 112 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- [MPLS](#mpls)
- [MPLS Interfaces](#mpls-interfaces)
- [Multicast](#multicast)
- [PIM Sparse Mode](#pim-sparse-mode)
- [Filters](#filters)
- [802.1X Port Security](#8021x-port-security)
- [802.1X Summary](#8021x-summary)
Expand Down Expand Up @@ -658,6 +659,14 @@ interface Ethernet45

# Multicast

## PIM Sparse Mode

### PIM Sparse Mode enabled interfaces

| Interface Name | VRF Name | IP Version | DR Priority | Local Interface |
| -------------- | -------- | ---------- | ----------- | --------------- |
| Ethernet5 | - | IPv4 | 200 | - |

# Filters

# 802.1X Port Security
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- [MPLS](#mpls)
- [MPLS Interfaces](#mpls-interfaces)
- [Multicast](#multicast)
- [PIM Sparse Mode](#pim-sparse-mode)
- [Filters](#filters)
- [ACL](#acl)
- [Quality Of Service](#quality-of-service)
Expand Down Expand Up @@ -632,6 +633,14 @@ interface Port-Channel114

# Multicast

## PIM Sparse Mode

### PIM Sparse Mode enabled interfaces

| Interface Name | VRF Name | IP Version | DR Priority | Local Interface |
| -------------- | -------- | ---------- | ----------- | --------------- |
| Port-Channel99 | - | IPv4 | 200 | - |

# Filters

# ACL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- [IP Routing](#ip-routing)
- [IPv6 Routing](#ipv6-routing)
- [Multicast](#multicast)
- [Router PIM Sparse Mode](#router-pim-sparse-mode)
- [PIM Sparse Mode](#pim-sparse-mode)
- [Filters](#filters)
- [ACL](#acl)
- [Quality Of Service](#quality-of-service)
Expand Down Expand Up @@ -85,30 +85,32 @@ interface Management1

# Multicast

## Router PIM Sparse Mode
## PIM Sparse Mode

### IP Sparse Mode Information
### Router PIM Sparse Mode

#### IP Rendezvous Information
#### IP Sparse Mode Information

##### IP Rendezvous Information

| Rendezvous Point Address | Group Address |
| ------------------------ | ------------- |
| 10.238.1.161 | 239.12.12.12/32, 239.12.12.13/32, 239.12.12.14/32, 239.12.12.16/32, 239.12.12.20/32, 239.12.12.21/32 |

#### IP Anycast Information
##### IP Anycast Information

| IP Anycast Address | Other Rendezvous Point Address | Register Count |
| ------------------ | ------------------------------ | -------------- |
| 10.38.1.161 | 10.50.64.16 | 15 |

#### IP Sparse Mode VRFs
##### IP Sparse Mode VRFs

| VRF Name | Rendezvous Point Address | Group Address |
| -------- | ------------------------ | ------------- |
| MCAST_VRF1 | 10.238.2.161 | 239.12.22.12/32, 239.12.22.13/32, 239.12.22.14/32 |
| MCAST_VRF2_ALL_GROUPS | 10.238.3.161 | - |

### Router Multicast Device Configuration
#### Router Multicast Device Configuration

```eos
!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- [BFD](#bfd)
- [BFD Interfaces](#bfd-interfaces)
- [Multicast](#multicast)
- [PIM Sparse Mode](#pim-sparse-mode)
- [Filters](#filters)
- [ACL](#acl)
- [Quality Of Service](#quality-of-service)
Expand Down Expand Up @@ -396,6 +397,15 @@ interface Vlan4094

# Multicast

## PIM Sparse Mode

### PIM Sparse Mode enabled interfaces

| Interface Name | VRF Name | IP Version | DR Priority | Local Interface |
| -------------- | -------- | ---------- | ----------- | --------------- |
| Vlan89 | - | IPv4 | - | Loopback0 |
| Vlan4094 | - | IPv4 | 200 | - |

# Filters

# ACL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- [MPLS](#mpls)
- [MPLS Interfaces](#mpls-interfaces)
- [Multicast](#multicast)
- [PIM Sparse Mode](#pim-sparse-mode)
- [Filters](#filters)
- [ACL](#acl)
- [Quality Of Service](#quality-of-service)
Expand Down Expand Up @@ -531,6 +532,14 @@ interface Ethernet28

# Multicast

## PIM Sparse Mode

### PIM Sparse Mode enabled interfaces

| Interface Name | VRF Name | IP Version | DR Priority | Local Interface |
| -------------- | -------- | ---------- | ----------- | --------------- |
| Ethernet5 | - | IPv4 | - | - |

# Filters

# ACL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- [IP Routing](#ip-routing)
- [IPv6 Routing](#ipv6-routing)
- [Multicast](#multicast)
- [Router PIM Sparse Mode](#router-pim-sparse-mode)
- [PIM Sparse Mode](#pim-sparse-mode)
- [Filters](#filters)
- [ACL](#acl)
- [Quality Of Service](#quality-of-service)
Expand Down Expand Up @@ -85,30 +85,32 @@ interface Management1

# Multicast

## Router PIM Sparse Mode
## PIM Sparse Mode

### IP Sparse Mode Information
### Router PIM Sparse Mode

#### IP Rendezvous Information
#### IP Sparse Mode Information

##### IP Rendezvous Information

| Rendezvous Point Address | Group Address |
| ------------------------ | ------------- |
| 10.238.1.161 | 239.12.12.12/32, 239.12.12.13/32, 239.12.12.14/32, 239.12.12.16/32, 239.12.12.20/32, 239.12.12.21/32 |

#### IP Anycast Information
##### IP Anycast Information

| IP Anycast Address | Other Rendezvous Point Address | Register Count |
| ------------------ | ------------------------------ | -------------- |
| 10.38.1.161 | 10.50.64.16 | 15 |

#### IP Sparse Mode VRFs
##### IP Sparse Mode VRFs

| VRF Name | Rendezvous Point Address | Group Address |
| -------- | ------------------------ | ------------- |
| MCAST_VRF1 | 10.238.2.161 | 239.12.22.12/32, 239.12.22.13/32, 239.12.22.14/32 |
| MCAST_VRF2_ALL_GROUPS | 10.238.3.161 | - |

### Router Multicast Device Configuration
#### Router Multicast Device Configuration

```eos
!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- [BFD](#bfd)
- [BFD Interfaces](#bfd-interfaces)
- [Multicast](#multicast)
- [PIM Sparse Mode](#pim-sparse-mode)
- [Filters](#filters)
- [ACL](#acl)
- [Quality Of Service](#quality-of-service)
Expand Down Expand Up @@ -332,6 +333,15 @@ interface Vlan4094

# Multicast

## PIM Sparse Mode

### PIM Sparse Mode enabled interfaces

| Interface Name | VRF Name | IP Version | DR Priority | Local Interface |
| -------------- | -------- | ---------- | ----------- | --------------- |
| Vlan89 | - | IPv4 | - | Loopback0 |
| Vlan4094 | - | IPv4 | - | - |

# Filters

# ACL
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{# Building list of PIM interfaces - Only IPv4 supported today #}
{% if pim_interfaces | length > 0 %}

### PIM Sparse Mode enabled interfaces

| Interface Name | VRF Name | IP Version | DR Priority | Local Interface |
| -------------- | -------- | ---------- | ----------- | --------------- |
{% for interface in pim_interfaces %}
{% set vrf = interface.vrf | arista.avd.default('-') %}
{% set ip_version = "IPv4" %}
{% set dr_priority = interface.pim.ipv4.dr_priority | arista.avd.default('-') %}
{% set local_interface = interface.pim.ipv4.local_interface | arista.avd.default('-') %}
| {{ interface.name }} | {{ vrf }} | {{ ip_version }} | {{ dr_priority }} | {{ local_interface }} |
{% endfor %}
{% endif %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{# Interfaces #}
{% set pim_interfaces = [] %}
{% for ethernet_interface in ethernet_interfaces | arista.avd.convert_dicts('name') | arista.avd.natural_sort('name') %}
{% if ethernet_interface.pim.ipv4.sparse_mode is arista.avd.defined(true) %}
{% do pim_interfaces.append(ethernet_interface) %}
{% endif %}
{% endfor %}
{% for port_channel_interface in port_channel_interfaces | arista.avd.convert_dicts('name') | arista.avd.natural_sort('name') %}
{% if port_channel_interface.pim.ipv4.sparse_mode is arista.avd.defined(true) %}
{% do pim_interfaces.append(port_channel_interface) %}
{% endif %}
{% endfor %}
{% for vlan_interface in vlan_interfaces | arista.avd.convert_dicts('name') | arista.avd.natural_sort('name') %}
{% if vlan_interface.pim.ipv4.sparse_mode is arista.avd.defined(true) %}
{% do pim_interfaces.append(vlan_interface) %}
{% endif %}
{% endfor %}
{% if router_pim_sparse_mode is arista.avd.defined or pim_interfaces | length > 0 %}

## PIM Sparse Mode
{## Router pim sparse-mode #}
{% include 'documentation/router-pim-sparse-mode.j2' %}
{## PIM Sparse Mode Interfaces #}
{% include 'documentation/pim-sparse-mode-interfaces.j2' %}
{% endif %}
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{# IP PIM Sparse Mode Summary #}
{% if router_pim_sparse_mode is arista.avd.defined %}

## Router PIM Sparse Mode
### Router PIM Sparse Mode

### IP Sparse Mode Information
#### IP Sparse Mode Information
{% if router_pim_sparse_mode.ipv4 is arista.avd.defined %}
{% if router_pim_sparse_mode.ipv4.rp_addresses is arista.avd.defined %}

#### IP Rendezvous Information
##### IP Rendezvous Information

| Rendezvous Point Address | Group Address |
| ------------------------ | ------------- |
Expand All @@ -18,7 +18,7 @@
{% endif %}
{% if router_pim_sparse_mode.ipv4.anycast_rps is arista.avd.defined %}

#### IP Anycast Information
##### IP Anycast Information

| IP Anycast Address | Other Rendezvous Point Address | Register Count |
| ------------------ | ------------------------------ | -------------- |
Expand All @@ -32,7 +32,7 @@
{% endif %}
{% if router_pim_sparse_mode.vrfs is arista.avd.defined %}

#### IP Sparse Mode VRFs
##### IP Sparse Mode VRFs

| VRF Name | Rendezvous Point Address | Group Address |
| -------- | ------------------------ | ------------- |
Expand All @@ -46,7 +46,7 @@
{% endfor %}
{% endif %}

### Router Multicast Device Configuration
#### Router Multicast Device Configuration

```eos
{% include 'eos/router-pim-sparse-mode.j2' %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
{## Router Multicast #}
{% include 'documentation/router-multicast.j2' %}
{## Router PIM Sparse Mode #}
{% include 'documentation/router-pim-sparse-mode.j2' %}
{% include 'documentation/pim-sparse-mode.j2' %}
{## Router IGMP #}
{% include 'documentation/router-igmp.j2' %}

Expand Down

0 comments on commit 5b3f893

Please sign in to comment.