add Vendor model to select flavor/image at Tenant creation
Change-Id: I48343e55d24d5d298174f96886674cd75553fc41
diff --git a/xos/vmme.xproto b/xos/vmme.xproto
index 91f9453..7ebd4c6 100644
--- a/xos/vmme.xproto
+++ b/xos/vmme.xproto
@@ -9,7 +9,17 @@
option verbose_name = "Virtual Mobility Management Entity Service";
}
-message VMMETenant (TenantWithContainer){
- option name = "VMMETenant";
- option verbose_name = "Virtual Mobility Management Entity Tenant";
+message VMMEVendor (PlCoreBase){
+ option name = "VMMEVendor";
+ option verbose_name = "Virtual Mobility Management Entity 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 VMMETenant (TenantWithContainer){
+ option name = "VMMETenant";
+ option verbose_name = "Virtual Mobility Management Entity Tenant";
+ optional manytoone vmme_vendor->VMMEVendor:vendor_tenants = 1 [help_text = "select vendor of choice, leave blank for slice default", db_index = True, null = True, blank = True];
+}
+