Sapan Bhatia | 0a56fdc | 2017-04-21 15:12:57 +0200 | [diff] [blame] | 1 | option kind="vROUTER"; |
| 2 | option name="vrouter"; |
Sapan Bhatia | 5d25554 | 2017-06-16 17:49:56 -0700 | [diff] [blame] | 3 | option legacy="True"; |
Matteo Scandolo | 296e3c8 | 2017-09-07 09:45:21 -0700 | [diff] [blame^] | 4 | option app_label = "vrouter"; |
Sapan Bhatia | 0a56fdc | 2017-04-21 15:12:57 +0200 | [diff] [blame] | 5 | |
| 6 | message VRouterService (Service){ |
Matteo Scandolo | 76d1e47 | 2017-08-17 12:25:47 -0700 | [diff] [blame] | 7 | option verbose_name="vRouter Service"; |
| 8 | |
Sapan Bhatia | 0a56fdc | 2017-04-21 15:12:57 +0200 | [diff] [blame] | 9 | optional string rest_hostname = 1 [db_index = False, max_length = 255, null = True, content_type = "stripped", blank = True]; |
| 10 | required int32 rest_port = 2 [default = 8181, null = False, db_index = False, blank = False]; |
| 11 | required string rest_user = 3 [default = "onos", max_length = 255, content_type = "stripped", blank = False, null = False, db_index = False]; |
| 12 | required string rest_pass = 4 [default = "rocks", max_length = 255, content_type = "stripped", blank = False, null = False, db_index = False]; |
| 13 | } |
| 14 | |
Sapan Bhatia | 103593d | 2017-05-19 23:10:53 +0200 | [diff] [blame] | 15 | message VRouterDevice (XOSBase){ |
Matteo Scandolo | 76d1e47 | 2017-08-17 12:25:47 -0700 | [diff] [blame] | 16 | option verbose_name="vRouter Device"; |
| 17 | |
Sapan Bhatia | 0a56fdc | 2017-04-21 15:12:57 +0200 | [diff] [blame] | 18 | optional string name = 1 [help_text = "device friendly name", max_length = 20, null = True, db_index = False, blank = True]; |
| 19 | required string openflow_id = 2 [help_text = "device identifier in ONOS", max_length = 20, null = False, db_index = False, blank = False]; |
| 20 | required string config_key = 3 [default = "basic", max_length = 32, blank = False, help_text = "configuration key", null = False, db_index = False]; |
| 21 | required string driver = 4 [help_text = "driver type", max_length = 32, null = False, db_index = False, blank = False]; |
| 22 | required manytoone vrouter_service->VRouterService:devices = 5 [db_index = True, null = False, blank = False]; |
| 23 | } |
| 24 | |
Sapan Bhatia | 103593d | 2017-05-19 23:10:53 +0200 | [diff] [blame] | 25 | message VRouterPort (XOSBase){ |
Matteo Scandolo | 76d1e47 | 2017-08-17 12:25:47 -0700 | [diff] [blame] | 26 | option verbose_name="vRouter Port"; |
| 27 | |
Sapan Bhatia | 0a56fdc | 2017-04-21 15:12:57 +0200 | [diff] [blame] | 28 | optional string name = 1 [help_text = "port friendly name", max_length = 20, null = True, db_index = False, blank = True]; |
| 29 | required string openflow_id = 2 [help_text = "port identifier in ONOS", max_length = 21, null = False, db_index = False, blank = False]; |
| 30 | required manytoone vrouter_device->VRouterDevice:ports = 3 [db_index = True, null = False, blank = False]; |
| 31 | required manytoone vrouter_service->VRouterService:device_ports = 4 [db_index = True, null = False, blank = False]; |
| 32 | } |
| 33 | |
Sapan Bhatia | 103593d | 2017-05-19 23:10:53 +0200 | [diff] [blame] | 34 | message VRouterApp (XOSBase){ |
Matteo Scandolo | 76d1e47 | 2017-08-17 12:25:47 -0700 | [diff] [blame] | 35 | option verbose_name="vRouter App"; |
| 36 | |
Sapan Bhatia | 0a56fdc | 2017-04-21 15:12:57 +0200 | [diff] [blame] | 37 | required manytoone vrouter_service->VRouterService:apps = 1 [db_index = True, null = False, blank = False]; |
| 38 | required string name = 2 [help_text = "application name", max_length = 50, null = False, db_index = False, blank = False]; |
| 39 | required string control_plane_connect_point = 3 [help_text = "port identifier in ONOS", max_length = 21, null = False, db_index = False, blank = False]; |
| 40 | required bool ospf_enabled = 4 [help_text = "ospf enabled", default = True, null = False, db_index = False, blank = True]; |
| 41 | } |
| 42 | |
Sapan Bhatia | 103593d | 2017-05-19 23:10:53 +0200 | [diff] [blame] | 43 | message VRouterInterface (XOSBase) { |
Matteo Scandolo | 76d1e47 | 2017-08-17 12:25:47 -0700 | [diff] [blame] | 44 | option verbose_name="vRouter Interface"; |
| 45 | |
Sapan Bhatia | 0a56fdc | 2017-04-21 15:12:57 +0200 | [diff] [blame] | 46 | required manytoone vrouter_port->VRouterPort:interfaces = 1 [db_index = True, null = False, blank = False]; |
| 47 | required string name = 2 [help_text = "interface name", max_length = 10, null = False, db_index = False, blank = False]; |
| 48 | required string mac = 3 [help_text = "interface mac", max_length = 17, null = False, db_index = False, blank = False]; |
| 49 | optional string vlan = 4 [help_text = "interface vlan id", max_length = 10, null = True, db_index = False, blank = True]; |
| 50 | } |
| 51 | |
Sapan Bhatia | 103593d | 2017-05-19 23:10:53 +0200 | [diff] [blame] | 52 | message VRouterIp (XOSBase){ |
Matteo Scandolo | 76d1e47 | 2017-08-17 12:25:47 -0700 | [diff] [blame] | 53 | option verbose_name="vRouter Ip"; |
| 54 | |
Sapan Bhatia | 0a56fdc | 2017-04-21 15:12:57 +0200 | [diff] [blame] | 55 | optional string name = 1 [help_text = "ip friendly name", max_length = 20, null = True, db_index = False, blank = True]; |
| 56 | required manytoone vrouter_interface->VRouterInterface:ips = 2 [db_index = True, null = False, blank = False]; |
| 57 | required string ip = 3 [help_text = "interface ips", max_length = 19, null = False, db_index = False, blank = False]; |
| 58 | } |
| 59 | |
Scott Baker | 7c241cd | 2017-07-18 10:54:14 -0700 | [diff] [blame] | 60 | message VRouterTenant (ServiceInstance){ |
Matteo Scandolo | 76d1e47 | 2017-08-17 12:25:47 -0700 | [diff] [blame] | 61 | option verbose_name="vRouter Tenant"; |
| 62 | |
Sapan Bhatia | 0a56fdc | 2017-04-21 15:12:57 +0200 | [diff] [blame] | 63 | optional string public_ip = 1 [db_index = False, max_length = 30, null = True, content_type = "stripped", blank = True]; |
| 64 | optional string public_mac = 2 [db_index = False, max_length = 30, null = True, content_type = "stripped", blank = True]; |
| 65 | optional manytoone address_pool->AddressPool:vrouter_tenants = 3 [db_index = True, null = True, blank = True]; |
| 66 | } |