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

Feat(eos_designs): Add router traffic-engineering for CV Pathfinder #3551

Merged
Merged
Show file tree
Hide file tree
Changes from all 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
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 @@ -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 @@ -317,6 +317,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
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 @@ -238,6 +238,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 @@ -304,6 +304,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 @@ -299,6 +299,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 @@ -311,6 +311,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 @@ -328,6 +328,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 @@ -319,6 +319,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}
Loading