From 1ad4cd4d35bcd0d4d9898650eb0452b184b55f77 Mon Sep 17 00:00:00 2001 From: Romanos Skiadas Date: Mon, 13 Mar 2017 15:08:54 +0200 Subject: Fix quagga peering by working around the NAT Quagga peering doesn't seem to work over the NATted openstack external network. To work around this, directly patch the quagga instance to the external network and give it a fixed IP in that network. Then, all the peering traffic goes over that patched interface. Change-Id: I8d9d8fef4e86839c821f83e564d5c49cc15e43ae JIRA: SDNVPN-114 Signed-off-by: Romanos Skiadas --- sdnvpn/lib/quagga.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sdnvpn/lib') diff --git a/sdnvpn/lib/quagga.py b/sdnvpn/lib/quagga.py index e2885c2..9f8a4cd 100644 --- a/sdnvpn/lib/quagga.py +++ b/sdnvpn/lib/quagga.py @@ -29,10 +29,14 @@ def bootstrap_quagga(fip_addr, controller_ip): return rc == 0 -def gen_quagga_setup_script(controller_ip, instance_floating_ip): +def gen_quagga_setup_script(controller_ip, + fake_floating_ip, + ext_net_mask): with open(COMMON_CONFIG.quagga_setup_script_path) as f: template = f.read() - script = template % (controller_ip, instance_floating_ip) + script = template % (controller_ip, + fake_floating_ip, + ext_net_mask) return script -- cgit 1.2.3-korg