Provide per-hostname interface configs

This commit is contained in:
Pim van Pelt
2022-10-18 19:54:17 +02:00
parent 5bc0d2c84c
commit 04c93b513c
34 changed files with 125 additions and 82 deletions

View File

@ -6,3 +6,4 @@ exec /etc/vpp/config/lcp.vpp
comment { Allow user to set persistent manual configs }
exec /etc/vpp/config/manual.vpp

View File

@ -2,3 +2,5 @@ set logging class linux-cp rate-limit 1000 level warn syslog-level notice
lcp default netns dataplane
lcp lcp-sync on
lcp lcp-auto-subint off

View File

@ -1 +1,2 @@
comment { This file is overridden by blobs/{{node.hostname}}/etc/vpp/config/interfaces.vpp }

View File

@ -4,3 +4,5 @@ lcp create GigabitEthernet10/0/0 host-if e0
lcp create GigabitEthernet10/0/1 host-if e1
lcp create GigabitEthernet10/0/2 host-if e2
lcp create GigabitEthernet10/0/3 host-if e3

View File

@ -3,3 +3,5 @@ create loopback interface instance 0
set interface state loop0 up
set interface ip address loop0 {{ node.loopback.ipv4 }}
set interface ip address loop0 {{ node.loopback.ipv6 }}

View File

@ -0,0 +1,3 @@
comment { Put any config for {{ node.hostname }} you'd like here. }
comment { It will persist across restarts of VPP and reboots of the VM. }