summaryrefslogtreecommitdiffstats
path: root/sdnvpn/lib/quagga.py
diff options
context:
space:
mode:
Diffstat (limited to 'sdnvpn/lib/quagga.py')
-rw-r--r--sdnvpn/lib/quagga.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/sdnvpn/lib/quagga.py b/sdnvpn/lib/quagga.py
index 5234189..0ea206e 100644
--- a/sdnvpn/lib/quagga.py
+++ b/sdnvpn/lib/quagga.py
@@ -1,3 +1,12 @@
+#!/usr/bin/env python
+#
+# Copyright (c) 2017 All rights reserved
+# This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
"""Utilities for setting up quagga peering"""
import logging
@@ -35,12 +44,14 @@ def bootstrap_quagga(fip_addr, controller_ip):
def gen_quagga_setup_script(controller_ip,
fake_floating_ip,
- ext_net_mask):
+ ext_net_mask,
+ ip_prefix, rd, irt, ert):
with open(COMMON_CONFIG.quagga_setup_script_path) as f:
template = f.read()
script = template % (controller_ip,
fake_floating_ip,
- ext_net_mask)
+ ext_net_mask,
+ ip_prefix, rd, irt, ert)
return script