add networkDeployment to xoslib
diff --git a/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js b/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js
index af97303..ac16b60 100644
--- a/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js
+++ b/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js
@@ -13,6 +13,7 @@
DEPLOYMENT_API = "/plstackapi/deployments/";
IMAGE_API = "/plstackapi/images/";
NETWORKTEMPLATE_API = "/plstackapi/networktemplates/";
+ NETWORKDEPLOYMENT_API = "/plstackapi/networkdeployments/";
NETWORK_API = "/plstackapi/networks/";
NETWORKSLIVER_API = "/plstackapi/networkslivers/";
SERVICE_API = "/plstackapi/services/";
@@ -253,6 +254,7 @@
this.network = XOSModel.extend({ urlRoot: NETWORK_API });
this.networkCollection = XOSCollection.extend({ urlRoot: NETWORK_API,
+ relatedCollections: {"networkDeployments": "network", "networkSlivers": "network"},
foreignCollections: ["slices", "networkTemplates"],
model: this.network});
this.networks = new this.networkCollection();
@@ -262,6 +264,11 @@
model: this.networkSliver});
this.networkSlivers = new this.networkSliverCollection();
+ this.networkDeployment = XOSModel.extend({ urlRoot: NETWORKDEPLOYMENT_API });
+ this.networkDeploymentCollection = XOSCollection.extend({ urlRoot: NETWORKDEPLOYMENT_API,
+ model: this.networkDeployment});
+ this.networkDeployments = new this.networkDeploymentCollection();
+
this.service = XOSModel.extend({ urlRoot: SERVICE_API });
this.serviceCollection = XOSCollection.extend({ urlRoot: SERVICE_API,
model: this.service});