From aa0bef898b96ee3633eaa185a5b8ae371a8c3412 Mon Sep 17 00:00:00 2001 From: toby Date: Fri, 19 Oct 2018 23:01:19 +0200 Subject: [PATCH] adding ibgp interface to frrconfig and fixing syntax in up1-interfaces config --- debian/wit-network-config.postinst | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/debian/wit-network-config.postinst b/debian/wit-network-config.postinst index f2fadda..c54a647 100755 --- a/debian/wit-network-config.postinst +++ b/debian/wit-network-config.postinst @@ -137,11 +137,11 @@ case "$1" in cat <<-EOF >>$IFCONFIG auto $ifname iface $ifname inet static - address $ipv4 + address ${ipv4/\\/} mtu 9000 iface $ifname inet6 static - address $ipv6 + address ${ipv6/\\/} EOF @@ -150,6 +150,14 @@ case "$1" in if [[ $ifname = ibgp? ]]; then + + ## build FRR interface config to enable ND adv for ipv6 unmanaged + FRR_IFS="${FRR_IFS}interface $ifname\n" + FRR_IFS="${FRR_IFS} description $ifalias\n" + FRR_IFS="${FRR_IFS} ipv6 nd ra-interval 10\n" + FRR_IFS="${FRR_IFS} no ipv6 nd suppress-ra\n!\n" + + cat <<-EOF >>$IFCONFIG auto $ifname iface $ifname inet manual