blob: e1f5ddff37e767f33269162eb22ac489154ee344 [file] [log] [blame]
Andy Bavier03df22b2017-08-30 14:46:02 -07001option name = "volt";
2
3message VOLTService (Service){
4 option verbose_name = "vOLT Service";
5 option kind = "vOLT";
6}
7
8message VOLTTenant (ServiceInstance){
9 option kind = "vOLT";
10 option verbose_name = "vOLT Tenant";
11
12 optional int32 s_tag = 1 [help_text = "s-tag", null = True, db_index = False, blank = True];
13 optional int32 c_tag = 2 [help_text = "c-tag", null = True, db_index = False, blank = True];
14 optional manytoone creator->User:created_volts = 3 [db_index = True, null = True, blank = True];
15}
16
17message AccessAgent (XOSBase){
18 option verbose_name = "Access Agent";
19
20 required string name = 1 [help_text = "name of agent", max_length = 254, null = False, db_index = False, blank = False];
21 required manytoone volt_service->VOLTService:access_agents = 2 [db_index = True, null = False, blank = False];
22 optional string mac = 3 [help_text = "MAC Address or Access Agent", max_length = 32, null = True, db_index = False, blank = True];
23}
24
25message VOLTDevice (XOSBase){
26 option verbose_name = "vOLT Device";
27
28 required string name = 1 [help_text = "name of device", max_length = 254, null = False, db_index = False, blank = False];
29 required manytoone volt_service->VOLTService:volt_devices = 2 [db_index = True, null = False, blank = False];
30 optional string openflow_id = 3 [help_text = "OpenFlow ID", max_length = 254, null = True, db_index = False, blank = True];
31 optional string driver = 4 [help_text = "driver", max_length = 254, null = True, db_index = False, blank = True];
32 optional manytoone access_agent->AccessAgent:volt_devices = 5 [db_index = True, null = True, blank = True];
33}
34
35message AccessDevice (XOSBase){
36 option verbose_name = "Access Device";
37
38 required manytoone volt_device->VOLTDevice:access_devices = 1 [db_index = True, null = False, blank = False];
39 optional int32 uplink = 2 [db_index = False, null = True, blank = True];
40 optional int32 vlan = 3 [db_index = False, null = True, blank = True];
41}
42
43message AgentPortMapping (XOSBase){
44 option verbose_name = "Agent Port Mapping";
45
46 required manytoone access_agent->AccessAgent:port_mappings = 1 [db_index = True, null = False, blank = False];
47 optional string mac = 2 [help_text = "MAC Address", max_length = 32, null = True, db_index = False, blank = True];
48 optional string port = 3 [help_text = "Openflow port ID", max_length = 32, null = True, db_index = False, blank = True];
49}