Merge branch 'demo-mano-integration' of github.com:mpeuster/son-emu into demo-mano...
[osm/vim-emu.git] / src / emuvim / api / openstack / resources / port_pair.py
1 import uuid
2
3
4 class PortPair(object):
5 def __init__(self, name):
6 self.id = str(uuid.uuid4())
7 self.tenant_id = "abcdefghijklmnopqrstuvwxyz123456"
8 self.name = name
9 self.description = ""
10 self.ingress = None
11 self.egress = None
12 self.service_function_parameters = dict()
13
14 def create_dict(self, compute):
15 representation = {
16 "name": self.name,
17 "tenant_id": self.tenant_id,
18 "description": self.description,
19 "ingress": self.ingress.id,
20 "egress": self.egress.id,
21 "id": self.id
22 }
23 return representation