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:
		@@ -1,38 +1,8 @@
 | 
			
		||||
set logging class linux-cp rate-limit 1000 level warn syslog-level notice
 | 
			
		||||
comment { Apply system defaults from the build }
 | 
			
		||||
exec /etc/vpp/config/defaults.vpp
 | 
			
		||||
exec /etc/vpp/config/loopback.vpp
 | 
			
		||||
exec /etc/vpp/config/interface.vpp
 | 
			
		||||
exec /etc/vpp/config/lcp.vpp
 | 
			
		||||
 | 
			
		||||
lcp default netns dataplane
 | 
			
		||||
lcp lcp-sync on
 | 
			
		||||
lcp lcp-auto-subint off
 | 
			
		||||
 | 
			
		||||
comment { Create a loopback interface }
 | 
			
		||||
create loopback interface instance 0
 | 
			
		||||
lcp create loop0 host-if loop0
 | 
			
		||||
set interface state loop0 up
 | 
			
		||||
set interface ip address loop0 192.168.12.3/32
 | 
			
		||||
set interface ip address loop0 2001:678:d78:220::3/128
 | 
			
		||||
 | 
			
		||||
comment { Create one LinuxCP Interface Pair for each phy }
 | 
			
		||||
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
 | 
			
		||||
 | 
			
		||||
comment { e0 is uplink to AS8298 }
 | 
			
		||||
set interface state GigabitEthernet10/0/0 up
 | 
			
		||||
set interface mtu packet 1500 GigabitEthernet10/0/0 
 | 
			
		||||
set interface ip address GigabitEthernet10/0/0 192.168.10.7/31
 | 
			
		||||
set interface ip address GigabitEthernet10/0/0 2001:678:d78:201::00:00/112
 | 
			
		||||
 | 
			
		||||
comment { e1 is ptp with e0.vpp0-1 }
 | 
			
		||||
set interface state GigabitEthernet10/0/1 up
 | 
			
		||||
set interface mtu packet 9000 GigabitEthernet10/0/1 
 | 
			
		||||
set interface ip address GigabitEthernet10/0/1 192.168.10.8/31
 | 
			
		||||
set interface ip address GigabitEthernet10/0/1 2001:678:d78:201::01:00/112
 | 
			
		||||
 | 
			
		||||
comment { e2 is free to use }
 | 
			
		||||
set interface state GigabitEthernet10/0/2 down
 | 
			
		||||
set interface mtu packet 9000 GigabitEthernet10/0/2 
 | 
			
		||||
 | 
			
		||||
comment { e3 is free to use }
 | 
			
		||||
set interface state GigabitEthernet10/0/3 down
 | 
			
		||||
set interface mtu packet 9000 GigabitEthernet10/0/3
 | 
			
		||||
comment { Allow user to set persistent manual configs }
 | 
			
		||||
exec /etc/vpp/config/manual.vpp
 | 
			
		||||
@@ -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
 | 
			
		||||
@@ -0,0 +1 @@
 | 
			
		||||
comment { This file is overridden by blobs/vpp2-3/etc/vpp/config/interfaces.vpp }
 | 
			
		||||
@@ -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
 | 
			
		||||
@@ -0,0 +1,5 @@
 | 
			
		||||
comment { Create a loopback interface }
 | 
			
		||||
create loopback interface instance 0
 | 
			
		||||
set interface state loop0 up
 | 
			
		||||
set interface ip address loop0 192.168.12.3/32
 | 
			
		||||
set interface ip address loop0 2001:678:d78:220::3/128
 | 
			
		||||
@@ -0,0 +1,5 @@
 | 
			
		||||
# pim@ipng.nl - absynth, bfib, gripe, spongebob, homenet
 | 
			
		||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8X6oRdLn7PckWIRL+Fgp46qN+fglQLBJIvPHJ2P277v4tx/qlELaT8w45YyEPrUZ4XbbNIB4P59H63wPxIpk/d15k0C7Zx3kTESaEQuts3fne3ZFmrWm0dLD2yDTiB0zCraiQ5a0w++xuGEC3wdWPV+FHZh5Ea+WCd91g2xXPHJeosAQzBBBBaC9Shhx91h6lbCm4evvgqLnwt7JgnI2N4w2qr13lDDaRD4BXfyFrtLSTdhBgYEaFnUd6Afz5ilfDYXQW/yTSHZOIQ/vNVFpFxYrtmwHDdrSMiDpz0FE/4LLBG/rFl2VvRTmTEyjvwpGpEVaivMOLo/jRc3TA7jKB pim@ipng.nl
 | 
			
		||||
 | 
			
		||||
# pim's M1 macbookpro SeKEY
 | 
			
		||||
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKDP/hLZusPNfKTy3t9bbbOHyczX+UACc4rYstc3QEDBDfxBnCZcMKN5Mv10o+q/+ap7wyFhONlz/qcUhEMbI1k=
 | 
			
		||||
@@ -0,0 +1,5 @@
 | 
			
		||||
# pim@ipng.nl - absynth, bfib, gripe, spongebob, homenet
 | 
			
		||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8X6oRdLn7PckWIRL+Fgp46qN+fglQLBJIvPHJ2P277v4tx/qlELaT8w45YyEPrUZ4XbbNIB4P59H63wPxIpk/d15k0C7Zx3kTESaEQuts3fne3ZFmrWm0dLD2yDTiB0zCraiQ5a0w++xuGEC3wdWPV+FHZh5Ea+WCd91g2xXPHJeosAQzBBBBaC9Shhx91h6lbCm4evvgqLnwt7JgnI2N4w2qr13lDDaRD4BXfyFrtLSTdhBgYEaFnUd6Afz5ilfDYXQW/yTSHZOIQ/vNVFpFxYrtmwHDdrSMiDpz0FE/4LLBG/rFl2VvRTmTEyjvwpGpEVaivMOLo/jRc3TA7jKB pim@ipng.nl
 | 
			
		||||
 | 
			
		||||
# pim's M1 macbookpro SeKEY
 | 
			
		||||
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKDP/hLZusPNfKTy3t9bbbOHyczX+UACc4rYstc3QEDBDfxBnCZcMKN5Mv10o+q/+ap7wyFhONlz/qcUhEMbI1k=
 | 
			
		||||
		Reference in New Issue
	
	Block a user