sliceplus support for site_allocation and network_ports for tenant view
[plstackapi.git] / planetstack / core / xoslib / objects / sliceplus.py
index efb6b2a..7ec8e27 100644 (file)
@@ -26,6 +26,14 @@ class SlicePlus(Slice, PlusObjectMixin):
                 "siteCount": len(used_sites.keys()),
                 "roles": roles}
 
+    @property
+    def site_allocation(self):
+        return self.getSliceInfo()["sitesUsed"]
+
+    @site_allocation.setter
+    def site_allocation(self, value):
+        print "XXX set sitesUsed to", value
+
     @property
     def network_ports(self):
         # XXX this assumes there is only one network that can have ports bound