diff options
author | Nikolas Hermanns <nikolas.hermanns@ericsson.com> | 2017-04-04 11:21:32 -0400 |
---|---|---|
committer | Nikolas Hermanns <nikolas.hermanns@ericsson.com> | 2017-04-04 16:41:22 +0200 |
commit | 86e95e61e419227b1b4c9abfa8fecf3066aa0e91 (patch) | |
tree | aee744e9a61589d55dc102d3fa5c291205536ac8 /odl-pipeline | |
parent | fbe69370c477a7b01032df701fe96ea90ec60341 (diff) |
Removing groups from ovs and deleting odl folder
Change-Id: If9ceadfb363c37084f4cf907d7c7945061952ba1
Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
Diffstat (limited to 'odl-pipeline')
-rw-r--r-- | odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py b/odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py index 34a6732..053e022 100644 --- a/odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py +++ b/odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py @@ -94,8 +94,8 @@ class ODLReInstaller(Service): def reinstall_odl(node, odl_artifact): tar_tmp_path = '/tmp/odl-artifact/' node.copy('to', odl_artifact, tar_tmp_path + odl_artifact) - node.execute('rm -rf /opt/opendaylight/*', as_root=True) - node.execute('mkdir -p /opt/opendaylight/*', as_root=True) + node.execute('rm -rf /opt/opendaylight/', as_root=True) + node.execute('mkdir -p /opt/opendaylight/', as_root=True) if 'tar.gz' in odl_artifact: LOG.info('Extracting %s to /opt/opendaylight/ on node %s' % (odl_artifact, node.name)) @@ -147,6 +147,9 @@ class ODLReInstaller(Service): as_root=True) except ProcessExecutionError: LOG.info("No tunnel or patch ports configured") + LOG.info("Deleting all groups from {}".format(br)) + node.execute('ovs-ofctl -OOpenFlow13 del-groups {}'.format(br), + as_root=True, shell=True) @staticmethod def connect_ovs(node): |