blob: e1f5ddff37e767f33269162eb22ac489154ee344 [file] [log] [blame]
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +02001option name = "volt";
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +02002
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +02003message VOLTService (Service){
Matteo Scandolo91afdb92017-08-16 13:08:26 -07004 option verbose_name = "vOLT Service";
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +02005 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){
Matteo Scandolo91afdb92017-08-16 13:08:26 -070018 option verbose_name = "Access Agent";
19
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +020020 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
Sapan Bhatiae86b4b62017-05-19 23:01:13 +020025message VOLTDevice (XOSBase){
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +020026 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
Sapan Bhatiae86b4b62017-05-19 23:01:13 +020035message AccessDevice (XOSBase){
Matteo Scandolo91afdb92017-08-16 13:08:26 -070036 option verbose_name = "Access Device";
37
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +020038 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
Sapan Bhatiae86b4b62017-05-19 23:01:13 +020043message AgentPortMapping (XOSBase){
Matteo Scandolo91afdb92017-08-16 13:08:26 -070044 option verbose_name = "Agent Port Mapping";
45
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +020046 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}