blob: 32be7327777e5197f1668378b63568133835c991 [file] [log] [blame]
Sapan Bhatia0a56fdc2017-04-21 15:12:57 +02001option kind="vROUTER";
2option name="vrouter";
Matteo Scandolo296e3c82017-09-07 09:45:21 -07003option app_label = "vrouter";
Sapan Bhatia0a56fdc2017-04-21 15:12:57 +02004
Luca Prete4259b992018-05-04 10:02:03 -07005message VRouterService (Service) {
6 option verbose_name = "vRouter Service";
Sapan Bhatia0a56fdc2017-04-21 15:12:57 +02007}
8
Luca Prete4259b992018-05-04 10:02:03 -07009message VRouterServiceInstance (ServiceInstance) {
10 option verbose_name = "vRouter Service Instance";
11 option owner_class_name = "VRouterService";
Matteo Scandolo76d1e472017-08-17 12:25:47 -070012
Luca Prete4259b992018-05-04 10:02:03 -070013 // 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 Bhatia0a56fdc2017-04-21 15:12:57 +020015}
16
Luca Prete4259b992018-05-04 10:02:03 -070017message VRouterStaticRoute (XOSBase) {
18 option verbose_name = "vRouter static route";
Matteo Scandolo76d1e472017-08-17 12:25:47 -070019
Luca Prete4259b992018-05-04 10:02:03 -070020 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 Prete9fae28c2018-11-01 10:59:52 -070021 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 Bhatia0a56fdc2017-04-21 15:12:57 +020023}