add Vendor model to select flavor/image at Tenant creation
Change-Id: Ic2a3efe73c74b54eb9b8e87d041a700556f68166
diff --git a/xos/vmm.xproto b/xos/vmm.xproto
index 64bd937..37a025d 100644
--- a/xos/vmm.xproto
+++ b/xos/vmm.xproto
@@ -9,7 +9,16 @@
option verbose_name = "Virtual Mobility Management Service";
}
+message VMMVendor (PlCoreBase){
+ option name = "VMMVendor";
+ option verbose_name = "Virtual Mobility Management 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 VMMTenant (TenantWithContainer){
- option name = "VMMTenant";
- option verbose_name = "Virtual Mobility Management Tenant";
+ option name = "VMMTenant";
+ option verbose_name = "Virtual Mobility Management Tenant";
+ optional manytoone vmm_vendor->VMMVendor:vendor_tenants = 1 [help_text = "select vendor of choice, leave blank for slice default", db_index = True, null = True, blank = True];
}