Skip to content
Snippets Groups Projects
Commit b6f3e0c0 authored by BRONES Romain's avatar BRONES Romain
Browse files

fix: CCN start/stop pack/unpack reverted for centralnode

* Stop the source of the data flow before stopping the sink
parent f8f8e899
No related branches found
No related tags found
No related merge requests found
......@@ -127,6 +127,10 @@ def stop_ccn(node_tangopath, ccnif=[]):
logger.info("Stopping CCN on {}".format(node_tangopath))
for n in ccnif:
if 'central' in node_tangopath:
prx["ccnunpack{}_control".format(n)] = False
prx["ccnpack{}_control".format(n)] = False
else:
prx["ccnpack{}_control".format(n)] = False
prx["ccnunpack{}_control".format(n)] = False
......@@ -195,6 +199,10 @@ def start_ccn(node_tangopath, ccnif=[]):
ack_ccn(node_tangopath, ccnif)
for n in ccnif:
if 'central' in node_tangopath:
prx["ccnunpack{}_control".format(n)] = 1
prx["ccnpack{}_control".format(n)] = 1
else:
prx["ccnpack{}_control".format(n)] = 1
prx["ccnunpack{}_control".format(n)] = 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment