add Vendor model to select flavor/image at Tenant creation
Change-Id: Ifde87eaa83b0559c83afd7010068dd5465125e37
diff --git a/xos/vsgwu.xproto b/xos/vsgwu.xproto
index 1ffdf94..cdcc822 100644
--- a/xos/vsgwu.xproto
+++ b/xos/vsgwu.xproto
@@ -6,10 +6,19 @@
message VSGWUService (Service){
option name = "VSGWUService";
- option verbose_name = "Virtual Serving Gateway -- User Plane Service ";
+ option verbose_name = "Virtual Serving Gateway -- User Plane Service";
+}
+
+message VSGWUVendor (PlCoreBase){
+ option name = "VSGWUVendor";
+ option verbose_name = "Virtual Serving Gateway -- User Plane Vendor";
+ required string name = 1 [help_text = "vendor name", max_length = 32, null = False, db_index = False, blank = False];
+ required manytoone image->Image:+ = 2 [help_text = "select image for this vendor", db_index = True, null = False, blank = False];
+ required manytoone flavor->Flavor:+ = 3 [help_text = "select openstack flavor for vendor image", db_index = True, null = False, blank = False];
}
message VSGWUTenant (TenantWithContainer){
- option name = "VSGWUTenant";
- option verbose_name = "Virtual Serving Gateway -- User Plane Tenant";
+ option name = "VSGWUTenant";
+ option verbose_name = "Virtual Serving Gateway -- User Plane Tenant";
+ optional manytoone vsgwu_vendor->VSGWUVendor:vendor_tenants = 1 [help_text = "select vendor of choice, leave blank for slice default", db_index = True, null = True, blank = True];
}