X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Femuvim%2Fapi%2Fzerorpc%2Fnetwork.py;h=af11bc3afbb7e47d2201ac138ee1305a8d1cfa67;hb=898a2af8cc32f6814fa3a0971ef71f4936f42171;hp=e5d5ca0a25ff2eab9f52663e17d6b01e67af9d51;hpb=a1e59c710ed694b97cb4aed76af6e8ee34a7bfbe;p=osm%2Fvim-emu.git diff --git a/src/emuvim/api/zerorpc/network.py b/src/emuvim/api/zerorpc/network.py index e5d5ca0..af11bc3 100644 --- a/src/emuvim/api/zerorpc/network.py +++ b/src/emuvim/api/zerorpc/network.py @@ -75,13 +75,15 @@ class DCNetworkApi(object): vnf_src_interface=kwargs.get('vnf_src_interface'), vnf_dst_interface=kwargs.get('vnf_dst_interface'), weight=kwargs.get('weight'), - match=kwargs.get('match')) + match=kwargs.get('match'), + bidirectional=kwargs.get('bidirectional'), + cookie=kwargs.get('cookie')) return str(c) except Exception as ex: logging.exception("RPC error.") return ex.message - def network_action_stop(self, vnf_src_name, vnf_dst_name, vnf_src_interface=None, vnf_dst_interface=None, weight=None): + def network_action_stop(self, vnf_src_name, vnf_dst_name, kwargs): # call DCNetwork method, not really datacenter specific API for now... # provided dc name needs to be part of API endpoint # no check if vnfs are really connected to this datacenter... @@ -89,10 +91,12 @@ class DCNetworkApi(object): try: c = self.net.setChain( vnf_src_name, vnf_dst_name, - vnf_src_interface=vnf_src_interface, - vnf_dst_interface=vnf_dst_interface, + vnf_src_interface=kwargs.get('vnf_src_interface'), + vnf_dst_interface=kwargs.get('vnf_dst_interface'), cmd='del-flows', - weight=weight) + weight=kwargs.get('weight'), + match=kwargs.get('match'), + bidirectional=kwargs.get('bidirectional')) return c except Exception as ex: logging.exception("RPC error.")