network/l3vpn-underlay.yaml

243 lines
4.9 KiB
YAML

apiVersion: google.dev/v1
kind: VyOSUnderlay
metadata:
name: l3vpn-underlay
namespace: network
spec:
infrastructureRef: l3vpn-infra
mpls:
enabled: true
ldp:
router_id_interface: loopback
routers:
- name: p1
protocols:
mpls:
enabled: true
ldp:
interfaces:
- eth1
- eth2
- eth3
- eth4
- eth5
router_id: 10.0.0.3
ospf:
areas:
- area: 0.0.0.0
type: backbone
router_id: 10.0.0.3
- name: p2
protocols:
mpls:
enabled: true
ldp:
interfaces:
- eth1
- eth2
- eth3
- eth4
- eth5
router_id: 10.0.0.4
ospf:
areas:
- area: 0.0.0.0
type: backbone
router_id: 10.0.0.4
- name: p3
protocols:
mpls:
enabled: true
ldp:
interfaces:
- eth1
- eth2
- eth3
- eth4
- eth5
router_id: 10.0.0.5
ospf:
areas:
- area: 0.0.0.0
type: backbone
router_id: 10.0.0.5
- name: p4
protocols:
mpls:
enabled: true
ldp:
interfaces:
- eth1
- eth2
- eth3
- eth4
- eth5
router_id: 10.0.0.6
ospf:
areas:
- area: 0.0.0.0
type: backbone
router_id: 10.0.0.6
- name: rr1
protocols:
bgp:
as_number: 65001
neighbors:
- peer: 10.0.0.7
remote_as: 65001
route_reflector_client: true
- peer: 10.0.0.8
remote_as: 65001
route_reflector_client: true
- peer: 10.0.0.10
remote_as: 65001
route_reflector_client: true
- peer: 10.0.0.11
remote_as: 65001
route_reflector_client: true
route_reflector: true
router_id: 10.0.0.1
mpls:
enabled: true
ldp:
interfaces:
- eth1
- eth2
router_id: 10.0.0.1
ospf:
areas:
- area: 0.0.0.0
type: backbone
router_id: 10.0.0.1
- name: rr2
protocols:
bgp:
as_number: 65001
neighbors:
- peer: 10.0.0.7
remote_as: 65001
route_reflector_client: true
- peer: 10.0.0.8
remote_as: 65001
route_reflector_client: true
- peer: 10.0.0.10
remote_as: 65001
route_reflector_client: true
- peer: 10.0.0.11
remote_as: 65001
route_reflector_client: true
route_reflector: true
router_id: 10.0.0.2
mpls:
enabled: true
ldp:
interfaces:
- eth1
- eth2
router_id: 10.0.0.2
ospf:
areas:
- area: 0.0.0.0
type: backbone
router_id: 10.0.0.2
- name: pe1
protocols:
bgp:
as_number: 65001
neighbors:
- peer: 10.0.0.1
remote_as: 65001
- peer: 10.0.0.2
remote_as: 65001
router_id: 10.0.0.7
mpls:
enabled: true
ldp:
interfaces:
- eth1
- eth4
router_id: 10.0.0.7
ospf:
areas:
- area: 0.0.0.0
type: backbone
router_id: 10.0.0.7
- name: pe2
protocols:
bgp:
as_number: 65001
neighbors:
- peer: 10.0.0.1
remote_as: 65001
- peer: 10.0.0.2
remote_as: 65001
router_id: 10.0.0.8
mpls:
enabled: true
ldp:
interfaces:
- eth1
- eth2
router_id: 10.0.0.8
ospf:
areas:
- area: 0.0.0.0
type: backbone
router_id: 10.0.0.8
- name: pe3
protocols:
bgp:
as_number: 65001
neighbors:
- peer: 10.0.0.1
remote_as: 65001
- peer: 10.0.0.2
remote_as: 65001
router_id: 10.0.0.10
mpls:
enabled: true
ldp:
interfaces:
- eth1
- eth4
router_id: 10.0.0.10
ospf:
areas:
- area: 0.0.0.0
type: backbone
router_id: 10.0.0.10
- name: pe4
protocols:
bgp:
as_number: 65001
neighbors:
- peer: 10.0.0.1
remote_as: 65001
- peer: 10.0.0.2
remote_as: 65001
router_id: 10.0.0.11
mpls:
enabled: true
ldp:
interfaces:
- eth1
- eth4
router_id: 10.0.0.11
ospf:
areas:
- area: 0.0.0.0
type: backbone
router_id: 10.0.0.11
routing:
bgp:
as_number: 65001
route_reflectors:
- 10.0.0.1
- 10.0.0.2
router_id_source: loopback
ospf:
areas:
- area_id: 0.0.0.0
type: backbone
router_id_source: loopback