Skip to content

Commit

Permalink
Feat(eos_cli_config_gen): port-channel-interfaces enhancement (#1396)
Browse files Browse the repository at this point in the history
Co-authored-by: tgodaA <tgoda@arista.com>
  • Loading branch information
UchihaItachiSama and tgodaA authored Feb 11, 2022
1 parent 335a59e commit e117eda
Show file tree
Hide file tree
Showing 6 changed files with 242 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ interface Ethernet50
| Port-Channel5 | DC1_L2LEAF1_Po1 | switched | trunk | 110,201 | - | - | - | - | 5 | - |
| Port-Channel10 | SRV01_bond0 | switched | trunk | 2-3000 | - | - | - | - | - | 0000:0000:0404:0404:0303 |
| Port-Channel12 | interface_in_mode_access_with_voice | switched | trunk phone | - | 100 | - | - | - | - | - |
| Port-Channel13 | EVPN-Vxlan single-active redundancy | switched | access | - | - | - | - | - | - | 0000:0000:0000:0102:0304 |
| Port-Channel14 | EVPN-MPLS multihoming | switched | access | - | - | - | - | - | - | 0000:0000:0000:0102:0305 |
| Port-Channel15 | DC1_L2LEAF3_Po1 | switched | trunk | 110,201 | - | - | - | - | 15 | - |
| Port-Channel16 | DC1_L2LEAF4_Po1 | switched | trunk | 110,201 | - | - | - | - | 16 | - |
| Port-Channel20 | Po_in_mode_access_accepting_tagged_LACP_frames | switched | access | 200 | - | - | - | - | - | - |
Expand Down Expand Up @@ -245,6 +247,27 @@ interface Ethernet50
| --------- | --------------- | -----------| --------- |
| Port-Channel102 | 111-112 | 110 | out

#### EVPN Multihoming

##### EVPN Multihoming Summary

| Interface | Ethernet Segment Identifier | Multihoming Redundancy Mode | Route Target |
| --------- | --------------------------- | --------------------------- | ------------ |
| Port-Channel13 | 0000:0000:0000:0102:0304 | single-active | 00:00:01:02:03:04 |
| Port-Channel14 | 0000:0000:0000:0102:0305 | all-active | 00:00:01:02:03:05 |

##### Designated Forwarder Election Summary

| Interface | Algorithm | Preference Value | Dont Preempt | Hold time | Subsequent Hold Time | Candidate Reachability Required |
| --------- | --------- | ---------------- | ------------ | --------- | -------------------- | ------------------------------- |
| Port-Channel13 | preference | 100 | True | 10 | - | True |

##### EVPN-MPLS summary

| Interface | Shared Index | Tunnel Flood Filter Time |
| --------- | ------------ | ------------------------ |
| Port-Channel14 | 100 | 100 |

#### Link Tracking Groups

| Interface | Group Name | Direction |
Expand Down Expand Up @@ -328,6 +351,26 @@ interface Port-Channel12
switchport phone vlan 70
switchport phone trunk untagged
!
interface Port-Channel13
description EVPN-Vxlan single-active redundancy
switchport
evpn ethernet-segment
identifier 0000:0000:0000:0102:0304
redundancy single-active
designated-forwarder election algorithm preference 100 dont-preempt
designated-forwarder election hold-time 10
designated-forwarder election candidate reachability required
route-target import 00:00:01:02:03:04
!
interface Port-Channel14
description EVPN-MPLS multihoming
switchport
evpn ethernet-segment
identifier 0000:0000:0000:0102:0305
mpls tunnel flood filter time 100
mpls shared index 100
route-target import 00:00:01:02:03:05
!
interface Port-Channel15
description DC1_L2LEAF3_Po1
switchport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,26 @@ interface Port-Channel12
switchport phone vlan 70
switchport phone trunk untagged
!
interface Port-Channel13
description EVPN-Vxlan single-active redundancy
switchport
evpn ethernet-segment
identifier 0000:0000:0000:0102:0304
redundancy single-active
designated-forwarder election algorithm preference 100 dont-preempt
designated-forwarder election hold-time 10
designated-forwarder election candidate reachability required
route-target import 00:00:01:02:03:04
!
interface Port-Channel14
description EVPN-MPLS multihoming
switchport
evpn ethernet-segment
identifier 0000:0000:0000:0102:0305
mpls tunnel flood filter time 100
mpls shared index 100
route-target import 00:00:01:02:03:05
!
interface Port-Channel15
description DC1_L2LEAF3_Po1
switchport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,28 @@ port_channel_interfaces:
trunk: untagged
vlan: 70

Port-Channel13:
description: EVPN-Vxlan single-active redundancy
esi: "0000:0000:0000:0102:0304"
rt: "00:00:01:02:03:04"
evpn_ethernet_segment:
redundancy: single-active
designated_forwarder_election:
algorithm: preference
preference_value: 100
dont_preempt: true
hold_time: 10
candidate_reachability_required: true

Port-Channel14:
description: EVPN-MPLS multihoming
esi: "0000:0000:0000:0102:0305"
rt: "00:00:01:02:03:05"
evpn_ethernet_segment:
mpls:
shared_index: 100
tunnel_flood_filter_time: 100

Port-Channel17:
description: PBR Description
type: routed
Expand Down
21 changes: 17 additions & 4 deletions ansible_collections/arista/avd/roles/eos_cli_config_gen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -994,12 +994,12 @@ ethernet_interfaces:
# preference_value and dont_preempt are set for preference algorithm and are optional
preference_value: < 0-65535 >
dont_preempt: < true | false | default -> false >
hold_time: < 1-1800 Seconds >
subsequent_hold_time: < 10-10000 milliseconds >
hold_time: < integer >
subsequent_hold_time: < integer >
candidate_reachability_required: < true | false >
mpls:
shared_index: < 1-1024 >
tunnel_flood_filter_time: < 10-10000 milliseconds >
tunnel_flood_filter_time: < integer >
route_target: < EVPN Route Target for ESI with format xx:xx:xx:xx:xx:xx >
flowcontrol:
received: < "received" | "send" | "on" >
Expand Down Expand Up @@ -1231,6 +1231,19 @@ port_channel_interfaces:
description: < description >
vlans: "< list of vlans as string >"
mode: < access | dot1q-tunnel | trunk | "trunk phone" >
evpn_ethernet_segment:
redundancy: < all-active | single-active >
designated_forwarder_election:
algorithm: < modulus | preference >
# preference_value and dont_preempt are set for preference algorithm and are optional
preference_value: < 0-65535 >
dont_preempt: < true | false | default -> false >
hold_time: < integer >
subsequent_hold_time: < integer >
candidate_reachability_required: < true | false >
mpls:
shared_index: < 1-1024 >
tunnel_flood_filter_time: < integer >
esi: < EVPN Ethernet Segment Identifier (Type 1 format) >
rt: < EVPN Route Target for ESI with format xx:xx:xx:xx:xx:xx >
lacp_id: < LACP ID with format xxxx.xxxx.xxxx >
Expand Down Expand Up @@ -2192,7 +2205,7 @@ monitor_sessions:
name: < acl_name >
rate_limit_per_ingress_chip: < "<int> bps" | "<int> kbps" | "<int> mbps" >
rate_limit_per_egress_chip: < "<int> bps" | "<int> kbps" | "<int> mbps" >
sample: < int >
sample: < integer >
truncate:
enabled: < true | false >
size: < bytes >
Expand Down
Loading

0 comments on commit e117eda

Please sign in to comment.