Sapan Bhatia | 8fc7eb3 | 2017-05-05 20:43:43 +0200 | [diff] [blame] | 1 | option name = "volt"; |
| 2 | option verbose_name = "vOLT Service"; |
| 3 | |
Sapan Bhatia | 8fc7eb3 | 2017-05-05 20:43:43 +0200 | [diff] [blame] | 4 | message VOLTService (Service){ |
| 5 | option kind = "vOLT"; |
| 6 | } |
| 7 | |
Scott Baker | d7590f7 | 2017-07-18 11:37:22 -0700 | [diff] [blame] | 8 | message VOLTTenant (ServiceInstance){ |
Sapan Bhatia | 8fc7eb3 | 2017-05-05 20:43:43 +0200 | [diff] [blame] | 9 | 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 Bhatia | e86b4b6 | 2017-05-19 23:01:13 +0200 | [diff] [blame] | 17 | message AccessAgent (XOSBase){ |
Sapan Bhatia | 8fc7eb3 | 2017-05-05 20:43:43 +0200 | [diff] [blame] | 18 | required string name = 1 [help_text = "name of agent", max_length = 254, null = False, db_index = False, blank = False]; |
| 19 | required manytoone volt_service->VOLTService:access_agents = 2 [db_index = True, null = False, blank = False]; |
| 20 | optional string mac = 3 [help_text = "MAC Address or Access Agent", max_length = 32, null = True, db_index = False, blank = True]; |
| 21 | } |
| 22 | |
Sapan Bhatia | e86b4b6 | 2017-05-19 23:01:13 +0200 | [diff] [blame] | 23 | message VOLTDevice (XOSBase){ |
Sapan Bhatia | 8fc7eb3 | 2017-05-05 20:43:43 +0200 | [diff] [blame] | 24 | option verbose_name = "vOLT Device"; |
| 25 | |
| 26 | required string name = 1 [help_text = "name of device", max_length = 254, null = False, db_index = False, blank = False]; |
| 27 | required manytoone volt_service->VOLTService:volt_devices = 2 [db_index = True, null = False, blank = False]; |
| 28 | optional string openflow_id = 3 [help_text = "OpenFlow ID", max_length = 254, null = True, db_index = False, blank = True]; |
| 29 | optional string driver = 4 [help_text = "driver", max_length = 254, null = True, db_index = False, blank = True]; |
| 30 | optional manytoone access_agent->AccessAgent:volt_devices = 5 [db_index = True, null = True, blank = True]; |
| 31 | } |
| 32 | |
Sapan Bhatia | e86b4b6 | 2017-05-19 23:01:13 +0200 | [diff] [blame] | 33 | message AccessDevice (XOSBase){ |
Sapan Bhatia | 8fc7eb3 | 2017-05-05 20:43:43 +0200 | [diff] [blame] | 34 | required manytoone volt_device->VOLTDevice:access_devices = 1 [db_index = True, null = False, blank = False]; |
| 35 | optional int32 uplink = 2 [db_index = False, null = True, blank = True]; |
| 36 | optional int32 vlan = 3 [db_index = False, null = True, blank = True]; |
| 37 | } |
| 38 | |
Sapan Bhatia | e86b4b6 | 2017-05-19 23:01:13 +0200 | [diff] [blame] | 39 | message AgentPortMapping (XOSBase){ |
Sapan Bhatia | 8fc7eb3 | 2017-05-05 20:43:43 +0200 | [diff] [blame] | 40 | required manytoone access_agent->AccessAgent:port_mappings = 1 [db_index = True, null = False, blank = False]; |
| 41 | optional string mac = 2 [help_text = "MAC Address", max_length = 32, null = True, db_index = False, blank = True]; |
| 42 | optional string port = 3 [help_text = "Openflow port ID", max_length = 32, null = True, db_index = False, blank = True]; |
| 43 | } |