summaryrefslogtreecommitdiffstats
path: root/sdnvpn/lib/utils.py
diff options
context:
space:
mode:
authortomsou <soth@intracom-telecom.com>2017-03-23 13:50:00 +0000
committerNikolas Hermanns <nikolas.hermanns@ericsson.com>2017-03-27 07:50:29 +0000
commitae2c3083656f94ba5c763af8312098f0c85d9fae (patch)
tree09c92ba1bb1ac3869d4c4afee36c35f585d4d7aa /sdnvpn/lib/utils.py
parent4d2cf21519e2c88866e4b5aac0b95eb5ed67f125 (diff)
Fix testcase3 (peering subcase) for Apex
- Fix runnning bgp related commands on Karaf: update util.run_odl_cmd() in order to be able to run commands on karaf client. Otherwise karaf commands fail - Ensure zrpcd/bgpd to run on controller side properly: Add missing quagga run folder, change owner and add user quagga into quaggavt group, in case of apex installer - Update the way of handling br-ex information and parsing out the controller external ip and mask: In case we have multiple ip/netmask assigned on br-ex the separation was faulty and an extra line, containing the second ip address, was added into ext_net_mask variable JIRA: SDNVPN-118 Change-Id: I62468c94fd945ba30e419bd30d9cd85502f28eeb Signed-off-by: tomsou <soth@intracom-telecom.com> (cherry picked from commit db1ce6276c443dd9766458c516cc58c7f2e098d5)
Diffstat (limited to 'sdnvpn/lib/utils.py')
-rw-r--r--sdnvpn/lib/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sdnvpn/lib/utils.py b/sdnvpn/lib/utils.py
index 5dcb8c1..90fce4a 100644
--- a/sdnvpn/lib/utils.py
+++ b/sdnvpn/lib/utils.py
@@ -408,7 +408,8 @@ def run_odl_cmd(odl_node, cmd):
that contains "ERROR" and run_cmd doesn't like that.
'''
- karaf_cmd = '/opt/opendaylight/bin/client "%s" 2>/dev/null' % cmd
+ karaf_cmd = ('/opt/opendaylight/bin/client -h 127.0.0.1 "%s"'
+ ' 2>/dev/null' % cmd)
return odl_node.run_cmd(karaf_cmd)