Futher flesh out the generator
- Create a per-host directory called overlays/$(overlay)/hostname/$(host.hostname) to have files that ought to be included only for that host. Things like /etc/vpp/config/interface.vpp go there - Rename the "templates" directory as overlays/$(overlay)/common/ - Render one after the other, so a file can exist in common and hostname, the latter taking precedence - Remove the config for 'pubkeys' and instead just make these common/root/.ssh/* and common/home/ipng/.ssh/* - Split out bootstrap.vpp so that a per-host include can be overriden for interfaces.vpp - But keep a default common/etc/vpp/config/interface.vpp as a placeholder, so that VPP will still start even if the per-hostname override isn't provided. - Generate a fresh output for 'default' on all machines
This commit is contained in:
build/default
hvn0.lab.ipng.ch
vpp0-0
etc
home
ipng
.ssh
root
.ssh
vpp0-1
etc
home
ipng
.ssh
root
.ssh
vpp0-2
etc
home
ipng
.ssh
root
.ssh
vpp0-3
etc
home
ipng
.ssh
root
.ssh
hvn1.lab.ipng.ch
vpp1-0
etc
home
ipng
.ssh
root
.ssh
vpp1-1
etc
home
ipng
.ssh
root
.ssh
vpp1-2
etc
home
ipng
.ssh
root
.ssh
vpp1-3
etc
home
ipng
.ssh
root
.ssh
hvn2.lab.ipng.ch
vpp2-0
etc
home
ipng
.ssh
root
.ssh
vpp2-1
etc
home
ipng
.ssh
root
.ssh
vpp2-2
etc
home
ipng
.ssh
root
.ssh
vpp2-3
etc
home
ipng
.ssh
root
.ssh
config/common
generateoverlays/bird
common
hostname
vpp0-0
etc
vpp
config
vpp0-1
etc
vpp
config
vpp0-2
etc
vpp
config
vpp0-3
etc
vpp
config
templates
etc
4
overlays/bird/common/etc/vpp/config/defaults.vpp
Normal file
4
overlays/bird/common/etc/vpp/config/defaults.vpp
Normal file
@ -0,0 +1,4 @@
|
||||
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
overlays/bird/common/etc/vpp/config/interface.vpp.j2
Normal file
1
overlays/bird/common/etc/vpp/config/interface.vpp.j2
Normal file
@ -0,0 +1 @@
|
||||
comment { This file is overridden by blobs/{{node.hostname}}/etc/vpp/config/interfaces.vpp }
|
6
overlays/bird/common/etc/vpp/config/lcp.vpp
Normal file
6
overlays/bird/common/etc/vpp/config/lcp.vpp
Normal file
@ -0,0 +1,6 @@
|
||||
comment { Create one LinuxCP Interface Pair for each phy }
|
||||
lcp create loop0 host-if loop0
|
||||
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
|
5
overlays/bird/common/etc/vpp/config/loopback.vpp.j2
Normal file
5
overlays/bird/common/etc/vpp/config/loopback.vpp.j2
Normal file
@ -0,0 +1,5 @@
|
||||
comment { Create a loopback interface }
|
||||
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 }}
|
Reference in New Issue
Block a user