Skip to content

Commit

Permalink
Feat: Add path-groups
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuloc committed Dec 19, 2023
1 parent 4711478 commit 74ed1f3
Show file tree
Hide file tree
Showing 19 changed files with 232 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,24 @@ hostname autovpn-edge
!
router path-selection
!
path-group INET id 500
ipsec profile AUTOVPN
!
local interface Ethernet1
stun server-profile autovpn-rr1-INET-0 autovpn-rr2-INET-0
!
peer dynamic
!
peer static router-ip 192.168.31.1
name autovpn-rr1
ipv4 address 10.7.7.7
!
peer static router-ip 192.168.31.2
name autovpn-rr2
ipv4 address 10.8.8.8
!
load-balance policy LBPOLICY
path-group INET
!
policy dps-policy-default
default-match
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ hostname autovpn-rr1
router path-selection
peer dynamic source stun
!
path-group INET id 500
ipsec profile AUTOVPN
!
local interface Ethernet1
!
load-balance policy LBPOLICY
path-group INET
!
policy dps-policy-default
default-match
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ hostname autovpn-rr2
router path-selection
peer dynamic source stun
!
path-group INET id 500
ipsec profile AUTOVPN
!
local interface Ethernet1
!
load-balance policy LBPOLICY
path-group INET
!
policy dps-policy-default
default-match
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,20 @@ hostname cv-pathfinder-edge
!
router path-selection
!
path-group INET id 500
ipsec profile CP-PROFILE
!
local interface Ethernet1
stun server-profile cv-pathfinder-pathfinder-INET-0
!
peer dynamic
!
peer static router-ip 192.168.44.1
name cv-pathfinder-pathfinder
ipv4 address 10.7.7.7
!
load-balance policy LBPOLICY
path-group INET
!
router adaptive-virtual-topology
topology role edge
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ hostname cv-pathfinder-pathfinder
router path-selection
peer dynamic source stun
!
path-group INET id 500
ipsec profile CP-PROFILE
!
local interface Ethernet1
!
load-balance policy LBPOLICY
path-group INET
!
router adaptive-virtual-topology
topology role pathfinder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ hostname cv-pathfinder-pathfinder1
router path-selection
peer dynamic source stun
!
path-group INET id 500
ipsec profile CP-PROFILE
!
local interface Ethernet1
!
load-balance policy LBPOLICY
path-group INET
!
router adaptive-virtual-topology
topology role pathfinder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ hostname cv-pathfinder-pathfinder2
router path-selection
peer dynamic source stun
!
path-group INET id 500
ipsec profile CP-PROFILE
!
local interface Ethernet1
!
load-balance policy LBPOLICY
path-group INET
!
router adaptive-virtual-topology
topology role pathfinder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,20 @@ hostname cv-pathfinder-transit
!
router path-selection
!
path-group INET id 500
ipsec profile CP-PROFILE
!
local interface Ethernet1
stun server-profile cv-pathfinder-pathfinder-INET-0
!
peer dynamic
!
peer static router-ip 192.168.44.1
name cv-pathfinder-pathfinder
ipv4 address 10.7.7.7
!
load-balance policy LBPOLICY
path-group INET
!
router adaptive-virtual-topology
topology role transit region
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,31 @@ router_bfd:
min_rx: 300
multiplier: 3
router_path_selection:
path_groups:
- name: INET
id: 500
local_interfaces:
- name: Ethernet1
stun:
server_profiles:
- autovpn-rr1-INET-0
- autovpn-rr2-INET-0
dynamic_peers:
enabled: true
static_peers:
- router_ip: 192.168.31.1
name: autovpn-rr1
ipv4_addresses:
- 10.7.7.7
- router_ip: 192.168.31.2
name: autovpn-rr2
ipv4_addresses:
- 10.8.8.8
ipsec_profile: AUTOVPN
load_balance_policies:
- name: LBPOLICY
path_groups:
- name: INET
policies:
- name: dps-policy-default
default_match:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,16 @@ router_bfd:
min_rx: 300
multiplier: 3
router_path_selection:
path_groups:
- name: INET
id: 500
local_interfaces:
- name: Ethernet1
ipsec_profile: AUTOVPN
load_balance_policies:
- name: LBPOLICY
path_groups:
- name: INET
policies:
- name: dps-policy-default
default_match:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,16 @@ router_bfd:
min_rx: 300
multiplier: 3
router_path_selection:
path_groups:
- name: INET
id: 500
local_interfaces:
- name: Ethernet1
ipsec_profile: AUTOVPN
load_balance_policies:
- name: LBPOLICY
path_groups:
- name: INET
policies:
- name: dps-policy-default
default_match:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,26 @@ router_bfd:
min_rx: 300
multiplier: 3
router_path_selection:
path_groups:
- name: INET
id: 500
local_interfaces:
- name: Ethernet1
stun:
server_profiles:
- cv-pathfinder-pathfinder-INET-0
dynamic_peers:
enabled: true
static_peers:
- router_ip: 192.168.44.1
name: cv-pathfinder-pathfinder
ipv4_addresses:
- 10.7.7.7
ipsec_profile: CP-PROFILE
load_balance_policies:
- name: LBPOLICY
path_groups:
- name: INET
stun:
client:
server_profiles:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,16 @@ router_bfd:
min_rx: 300
multiplier: 3
router_path_selection:
path_groups:
- name: INET
id: 500
local_interfaces:
- name: Ethernet1
ipsec_profile: CP-PROFILE
load_balance_policies:
- name: LBPOLICY
path_groups:
- name: INET
peer_dynamic_source: stun
stun:
server:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,16 @@ router_bfd:
min_rx: 300
multiplier: 3
router_path_selection:
path_groups:
- name: INET
id: 500
local_interfaces:
- name: Ethernet1
ipsec_profile: CP-PROFILE
load_balance_policies:
- name: LBPOLICY
path_groups:
- name: INET
peer_dynamic_source: stun
stun:
server:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,16 @@ router_bfd:
min_rx: 300
multiplier: 3
router_path_selection:
path_groups:
- name: INET
id: 500
local_interfaces:
- name: Ethernet1
ipsec_profile: CP-PROFILE
load_balance_policies:
- name: LBPOLICY
path_groups:
- name: INET
peer_dynamic_source: stun
stun:
server:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,26 @@ router_bfd:
min_rx: 300
multiplier: 3
router_path_selection:
path_groups:
- name: INET
id: 500
local_interfaces:
- name: Ethernet1
stun:
server_profiles:
- cv-pathfinder-pathfinder-INET-0
dynamic_peers:
enabled: true
static_peers:
- router_ip: 192.168.44.1
name: cv-pathfinder-pathfinder
ipv4_addresses:
- 10.7.7.7
ipsec_profile: CP-PROFILE
load_balance_policies:
- name: LBPOLICY
path_groups:
- name: INET
stun:
client:
server_profiles:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
from .overlay import OverlayMixin
from .short_esi import ShortEsiMixin
from .uplinks import UplinksMixin
from .wan import WanMixin
from .vlans import VlansMixin
from .wan import WanMixin


class EosDesignsFacts(AvdFacts, MlagMixin, ShortEsiMixin, OverlayMixin, WanMixin, UplinksMixin, VlansMixin):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def wan_local_path_groups(self: SharedUtils) -> list:
"name",
iface_path_group,
required=True,
custom_error_msg=f"WAN path_group {iface_path_group} is not in the available path_groups defined in `wan_path_groupes`",
custom_error_msg=f"WAN path_group {iface_path_group} is not in the available path_groups defined in `wan_path_groups`",
)
local_path_groups.append(path_group)

Expand Down
Loading

0 comments on commit 74ed1f3

Please sign in to comment.