diff options
author | Nikos Karandreas <nick@intracom-telecom.com> | 2018-09-26 08:50:14 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-09-26 08:50:14 +0000 |
commit | bdec0f1283bc91a4c78b858a28d25f76a0413cd2 (patch) | |
tree | 46723624e49eb2f5bec818c7453c367ed55bdf91 /sdnvpn/lib/quagga.py | |
parent | 6ffe81bf06727cb49be31cc0dd87aa506a48a834 (diff) | |
parent | 506187a2e2a7e9232954192d1cf45aab76a0c6a6 (diff) |
Merge "Replace % operator with format method"
Diffstat (limited to 'sdnvpn/lib/quagga.py')
-rw-r--r-- | sdnvpn/lib/quagga.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sdnvpn/lib/quagga.py b/sdnvpn/lib/quagga.py index 0ea206e..f11e188 100644 --- a/sdnvpn/lib/quagga.py +++ b/sdnvpn/lib/quagga.py @@ -48,10 +48,10 @@ def gen_quagga_setup_script(controller_ip, 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, - ip_prefix, rd, irt, ert) + script = template.format(controller_ip, + fake_floating_ip, + ext_net_mask, + ip_prefix, rd, irt, ert) return script |