Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 1 | option name = "volt"; |
| 2 | |
| 3 | message VOLTService (Service){ |
| 4 | option verbose_name = "vOLT Service"; |
| 5 | option kind = "vOLT"; |
| 6 | } |
| 7 | |
| 8 | message VOLTTenant (ServiceInstance){ |
| 9 | option kind = "vOLT"; |
Scott Baker | 7663f92 | 2018-02-20 10:14:32 -0800 | [diff] [blame] | 10 | option owner_class_name = "VOLTService"; |
Matteo Scandolo | 8134200 | 2018-02-28 14:33:02 -0800 | [diff] [blame^] | 11 | option verbose_name = "vOLT Service Instance"; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 12 | |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 13 | optional manytoone creator->User:created_volts = 3 [db_index = True, null = True, blank = True]; |
| 14 | } |
| 15 | |
| 16 | message 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 | |
| 24 | message 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 | |
| 34 | message 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 | |
| 42 | message 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 | } |