Sapan Bhatia | 0a56fdc | 2017-04-21 15:12:57 +0200 | [diff] [blame] | 1 | option kind="vROUTER"; |
| 2 | option name="vrouter"; |
Matteo Scandolo | 296e3c8 | 2017-09-07 09:45:21 -0700 | [diff] [blame] | 3 | option app_label = "vrouter"; |
Sapan Bhatia | 0a56fdc | 2017-04-21 15:12:57 +0200 | [diff] [blame] | 4 | |
Luca Prete | 4259b99 | 2018-05-04 10:02:03 -0700 | [diff] [blame] | 5 | message VRouterService (Service) { |
| 6 | option verbose_name = "vRouter Service"; |
Sapan Bhatia | 0a56fdc | 2017-04-21 15:12:57 +0200 | [diff] [blame] | 7 | } |
| 8 | |
Luca Prete | 4259b99 | 2018-05-04 10:02:03 -0700 | [diff] [blame] | 9 | message VRouterServiceInstance (ServiceInstance) { |
| 10 | option verbose_name = "vRouter Service Instance"; |
| 11 | option owner_class_name = "VRouterService"; |
Matteo Scandolo | 76d1e47 | 2017-08-17 12:25:47 -0700 | [diff] [blame] | 12 | |
Luca Prete | 4259b99 | 2018-05-04 10:02:03 -0700 | [diff] [blame] | 13 | // TODO - to be added to select interfaces the vrouter attaches to (use _decl) |
| 14 | // required manytoone interface->PortInterface:vrouters = 1 [help_text = "The fabric port interface to which the router is connected to", db_index = False, null = False, blank = False]; |
Sapan Bhatia | 0a56fdc | 2017-04-21 15:12:57 +0200 | [diff] [blame] | 15 | } |
| 16 | |
Luca Prete | 4259b99 | 2018-05-04 10:02:03 -0700 | [diff] [blame] | 17 | message VRouterStaticRoute (XOSBase) { |
| 18 | option verbose_name = "vRouter static route"; |
Matteo Scandolo | 76d1e47 | 2017-08-17 12:25:47 -0700 | [diff] [blame] | 19 | |
Luca Prete | 4259b99 | 2018-05-04 10:02:03 -0700 | [diff] [blame] | 20 | required manytoone vrouter->VRouterServiceInstance:static_routes = 1 [help_text = "The static route to be configured in ONOS", db_index = False, null = False, blank = False]; |
Luca Prete | 9fae28c | 2018-11-01 10:59:52 -0700 | [diff] [blame] | 21 | required string prefix = 2 [help_text = "The destination prefix and netmask (IP/NM)", max_length = 52, null = False, tosca_key = True, db_index = False, unique = True, blank = False]; |
| 22 | required string next_hop = 5 [help_text = "The next-hop for the route", max_length = 52, null = False, db_index = False, blank = False]; |
Sapan Bhatia | 0a56fdc | 2017-04-21 15:12:57 +0200 | [diff] [blame] | 23 | } |