Skip to content

Commit

Permalink
Feat(eos_designs): Add router traffic-engineering for CV Pathfinder (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuloc authored Jan 26, 2024
1 parent a69545f commit 32a1f54
Show file tree
Hide file tree
Showing 14 changed files with 52 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ router bgp 65000
bgp additional-paths send any
neighbor WAN-OVERLAY-PEERS activate
!
router traffic-engineering
!
management api http-commands
protocol https
no shutdown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ router bgp 65000
bgp additional-paths send any
neighbor WAN-OVERLAY-PEERS activate
!
router traffic-engineering
!
management api http-commands
protocol https
no shutdown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ router bgp 65000
bgp additional-paths send any
neighbor WAN-OVERLAY-PEERS activate
!
router traffic-engineering
!
management api http-commands
protocol https
no shutdown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ router bgp 65000
neighbor RR-OVERLAY-PEERS activate
neighbor WAN-OVERLAY-PEERS activate
!
router traffic-engineering
!
management api http-commands
protocol https
no shutdown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@ router bgp 65000
neighbor RR-OVERLAY-PEERS activate
neighbor WAN-OVERLAY-PEERS activate
!
router traffic-engineering
!
management api http-commands
protocol https
no shutdown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ router bgp 65000
bgp additional-paths send any
neighbor WAN-OVERLAY-PEERS activate
!
router traffic-engineering
!
management api http-commands
protocol https
no shutdown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ router_path_selection:
- name: LB-PROD-AVT-POLICY-DEFAULT
- name: LB-DEFAULT-AVT-POLICY-VIDEO
- name: LB-DEFAULT-AVT-POLICY-DEFAULT
router_traffic_engineering:
enabled: true
application_traffic_recognition:
application_profiles:
- name: VOICE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ router_path_selection:
- name: INET
- name: MPLS
priority: 42
router_traffic_engineering:
enabled: true
stun:
client:
server_profiles:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ router_path_selection:
- name: INET
- name: MPLS
priority: 2
router_traffic_engineering:
enabled: true
stun:
server:
local_interfaces:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,8 @@ router_path_selection:
- name: INET
- name: MPLS
priority: 2
router_traffic_engineering:
enabled: true
stun:
server:
local_interfaces:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ router_path_selection:
- name: INET
- name: MPLS
priority: 2
router_traffic_engineering:
enabled: true
stun:
server:
local_interfaces:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@ router_path_selection:
- name: INET
- name: MPLS
priority: 2
router_traffic_engineering:
enabled: true
stun:
client:
server_profiles:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from .router_bfd import RouterBfdMixin
from .router_bgp import RouterBgpMixin
from .router_path_selection import RouterPathSelectionMixin
from .router_traffic_engineering import RouterTrafficEngineering
from .stun import StunMixin


Expand All @@ -28,6 +29,7 @@ class AvdStructuredConfigOverlay(
RouterBgpMixin,
RouteMapsMixin,
RouterPathSelectionMixin,
RouterTrafficEngineering,
StunMixin,
):
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright (c) 2023-2024 Arista Networks, Inc.
# Use of this source code is governed by the Apache License 2.0
# that can be found in the LICENSE file.
from __future__ import annotations

from functools import cached_property

from .utils import UtilsMixin


class RouterTrafficEngineering(UtilsMixin):
"""
Mixin Class used to generate structured config for one key.
Class should only be used as Mixin to a AvdStructuredConfig class
"""

@cached_property
def router_traffic_engineering(self) -> dict | None:
"""
Return structured config for router traffic-engineering
"""

if not self.shared_utils.cv_pathfinder_role:
return None

return {"enabled": True}

0 comments on commit 32a1f54

Please sign in to comment.