blob: e607a23aabf181819a70b72aefac2bc0fd4c40f1 [file] [log] [blame]
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +02001option name = "volt";
2option verbose_name = "vOLT Service";
3
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +02004message VOLTService (Service){
5 option kind = "vOLT";
6}
7
Scott Bakerd7590f72017-07-18 11:37:22 -07008message VOLTTenant (ServiceInstance){
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +02009 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
Sapan Bhatiae86b4b62017-05-19 23:01:13 +020017message AccessAgent (XOSBase){
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +020018 required string name = 1 [help_text = "name of agent", max_length = 254, null = False, db_index = False, blank = False];
19 required manytoone volt_service->VOLTService:access_agents = 2 [db_index = True, null = False, blank = False];
20 optional string mac = 3 [help_text = "MAC Address or Access Agent", max_length = 32, null = True, db_index = False, blank = True];
21}
22
Sapan Bhatiae86b4b62017-05-19 23:01:13 +020023message VOLTDevice (XOSBase){
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +020024 option verbose_name = "vOLT Device";
25
26 required string name = 1 [help_text = "name of device", max_length = 254, null = False, db_index = False, blank = False];
27 required manytoone volt_service->VOLTService:volt_devices = 2 [db_index = True, null = False, blank = False];
28 optional string openflow_id = 3 [help_text = "OpenFlow ID", max_length = 254, null = True, db_index = False, blank = True];
29 optional string driver = 4 [help_text = "driver", max_length = 254, null = True, db_index = False, blank = True];
30 optional manytoone access_agent->AccessAgent:volt_devices = 5 [db_index = True, null = True, blank = True];
31}
32
Sapan Bhatiae86b4b62017-05-19 23:01:13 +020033message AccessDevice (XOSBase){
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +020034 required manytoone volt_device->VOLTDevice:access_devices = 1 [db_index = True, null = False, blank = False];
35 optional int32 uplink = 2 [db_index = False, null = True, blank = True];
36 optional int32 vlan = 3 [db_index = False, null = True, blank = True];
37}
38
Sapan Bhatiae86b4b62017-05-19 23:01:13 +020039message AgentPortMapping (XOSBase){
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +020040 required manytoone access_agent->AccessAgent:port_mappings = 1 [db_index = True, null = False, blank = False];
41 optional string mac = 2 [help_text = "MAC Address", max_length = 32, null = True, db_index = False, blank = True];
42 optional string port = 3 [help_text = "Openflow port ID", max_length = 32, null = True, db_index = False, blank = True];
43}