adding first steps for dhcp-loopback support and vcs info in control

This commit is contained in:
root 2018-08-08 20:59:37 +00:00
parent b8368a446f
commit e8a00a6adf
6 changed files with 9 additions and 0 deletions

2
debian/control vendored
View File

@ -4,6 +4,8 @@ Priority: extra
Maintainer: toby <toby@wit.com>
Build-Depends: debhelper (>= 7.0.0~), config-package-dev (>= 4.15)
Standards-Version: 3.9.2
Vcs-Browser: https://git.wit.com/netops/wit-network-config
Vcs-Git: https://git.wit.com/netops/wit-network-config
Package: wit-hypervisor-config
Architecture: all

View File

@ -1,3 +1,4 @@
/etc/systemd/timesyncd.conf.wit sed -e 's/#NTP=.*/NTP=ipv6.ntp.ubuntu.com/g'
/etc/frr/daemons.wit sed -e 's/bgpd=no/bgpd=yes/' -e 's/zebra=no/zebra=yes/'
/etc/bash.bashrc.wit sed -e 's/.*witaddon/source \/etc\/bashrc-witaddon/; t; $ s/$/\nsource \/etc\/bashrc-witaddon/'
/etc/dhcp/dhclient.conf.wit sed -e '/option.*loopback/d;t;1s/^/option loopback code 225 = ip-address;\n/'

6
files/dhcp-loopback Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
if [ ! -z $new_loopback ]; then
sed -ie '/^LOOPBACK=.*/d' /etc/environment
echo "LOOPBACK=$new_loopback" >>/etc/environment
fi

0
files/dhcp-sethostname Normal file → Executable file
View File

0
files/vrf-dhcp-enter Normal file → Executable file
View File

0
files/vrf-dhcp-exit Normal file → Executable file
View File