diff options
author | Stamatis Katsaounis <mokats@intracom-telecom.com> | 2018-09-10 11:34:17 +0300 |
---|---|---|
committer | Stamatis Katsaounis <mokats@intracom-telecom.com> | 2018-09-10 11:36:51 +0300 |
commit | 506187a2e2a7e9232954192d1cf45aab76a0c6a6 (patch) | |
tree | 271a3cfe530624c22310799788fb3eb7a538be95 /sdnvpn/lib | |
parent | 64a5e7dc89be1c52253a48fb5ccfa045b6619d0f (diff) |
Replace % operator with format method
JIRA: SDNVPN-223
Running the testcase 3 with the % operator was causing an error
on formating the string. This patch replace % operator with
format method.
Change-Id: I33d3a4539bd7e1914f8c52ea8e91ae15083ce0b1
Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
Diffstat (limited to 'sdnvpn/lib')
-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 |