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