Provide per-hostname interface configs
This commit is contained in:
@ -6,3 +6,4 @@ exec /etc/vpp/config/lcp.vpp
|
||||
|
||||
comment { Allow user to set persistent manual configs }
|
||||
exec /etc/vpp/config/manual.vpp
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
comment { This file is overridden by blobs/{{node.hostname}}/etc/vpp/config/interfaces.vpp }
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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 }}
|
||||
|
||||
|
||||
|
3
overlays/bird/common/etc/vpp/config/manual.vpp.j2
Normal file
3
overlays/bird/common/etc/vpp/config/manual.vpp.j2
Normal 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. }
|
||||
|
Reference in New Issue
Block a user