match = data.get("match")
bidirectional = data.get("bidirectional")
cookie = data.get("cookie")
+ priority = data.get("priority")
c = net.setChain(
vnf_src_name, vnf_dst_name,
vnf_src_interface=vnf_src_interface,
weight=weight,
match=match,
bidirectional=bidirectional,
- cookie=cookie)
+ cookie=cookie,
+ priority=priority)
# return setChain response
return str(c), 200
except Exception as ex:
# 3. do the dc.startCompute(name="foobar") call to run the container
# TODO consider flavors, and other annotations
intfs = vnfd.get("connection_points")
- # mgmt connection points can be skipped, this is considered to be the connection the default docker0 bridge
- intfs = [intf for intf in intfs if 'mgmt' not in intf['id']]
-
+
# use the vnf_id in the nsd as docker name
# so deployed containers can be easily mapped back to the nsd
vnf_name2id = defaultdict(lambda: "NotExistingNode",
path = kwargs.get('path')
current_hop = kwargs.get('current_hop')
vlan = kwargs.get('vlan')
+ priority = kwargs.get('priority')
s = ','
if match_input:
if cookie:
flow['cookie'] = int(cookie)
-
+ if priority:
+ flow['priority'] = int(priority)
flow['actions'] = []