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