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"; |
| 10 | option verbose_name = "vOLT Tenant"; |
Scott Baker | 7663f92 | 2018-02-20 10:14:32 -0800 | [diff] [blame] | 11 | option owner_class_name = "VOLTService"; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 12 | |
| 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 | |
| 18 | message 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 | |
| 26 | message 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 | |
| 36 | message 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 | |
| 44 | message 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 | } |