Move to vppcfg based configs - generate the initial config in vpp.service. Needs 20260406-2
This commit is contained in:
42
overlays/_common/vpp/etc/vpp/vppcfg.yaml.j2
Normal file
42
overlays/_common/vpp/etc/vpp/vppcfg.yaml.j2
Normal file
@@ -0,0 +1,42 @@
|
||||
loopbacks:
|
||||
loop0:
|
||||
description: 'Core: vpp{{lab.id}}-{{node.id}}'
|
||||
mtu: 9000
|
||||
lcp: loop0
|
||||
addresses: [ {{node.loopback.ipv4}}, {{node.loopback.ipv6}} ]
|
||||
interfaces:
|
||||
GigabitEthernet10/0/0:
|
||||
{% if node.id == 0 %}
|
||||
description: 'Gi10/0/0 is connected to lab.ipng.ch:lab{{lab.id}}'
|
||||
addresses: [ 192.168.{{10+lab.id}}.{{5+2*node.id}}/31, 2001:678:d78:2{{lab.id}}1::fffe/112 ]
|
||||
{% else %}
|
||||
description: 'Gi10/0/0 is connected to vpp{{lab.id}}-{{node.id-1}}:Gi10/0/1'
|
||||
addresses: [ 192.168.{{10+lab.id}}.{{5+2*node.id}}/31, 2001:678:d78:2{{lab.id}}1::{{node.id}}:{{lab.id}}{{node.id}}/112 ]
|
||||
mpls: true
|
||||
{% endif %}
|
||||
lcp: e0
|
||||
mtu: 9000
|
||||
sflow: true
|
||||
GigabitEthernet10/0/1:
|
||||
{% if node.id < 3 %}
|
||||
description: 'Gi10/0/1 is connected to vpp{{lab.id}}-{{node.id+1}}:Gi10/0/0'
|
||||
addresses: [ 192.168.{{10+lab.id}}.{{6+2*node.id}}/31, 2001:678:d78:2{{lab.id}}1::{{node.id+1}}:{{lab.id}}{{node.id}}/112 ]
|
||||
mpls: true
|
||||
{% else %}
|
||||
description: 'Gi10/0/1 is free to use'
|
||||
state: down
|
||||
{% endif %}
|
||||
lcp: e1
|
||||
mtu: 9000
|
||||
sflow: true
|
||||
GigabitEthernet10/0/2:
|
||||
description: 'Gi10/0/2 is connected to host{{lab.id}}-0:enp16s0f{{node.id}}'
|
||||
lcp: e2
|
||||
mtu: 9000
|
||||
sflow: true
|
||||
GigabitEthernet10/0/3:
|
||||
description: 'Gi10/0/3 is connected to host{{lab.id}}-1:enp16s0f{{node.id}}'
|
||||
lcp: e3
|
||||
mtu: 9000
|
||||
sflow: true
|
||||
|
||||
Reference in New Issue
Block a user