add network templates 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 f5431e7..c3f134e 100644
--- a/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js
+++ b/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js
@@ -8,6 +8,7 @@
USER_API = "/plstackapi/users/";
DEPLOYMENT_API = "/plstackapi/deployments";
IMAGE_API = "/plstackapi/images";
+ NETWORKTEMPLATE_API = "/plstackapi/networktemplates";
NETWORK_API = "/plstackapi/networks";
SERVICE_API = "/plstackapi/services";
@@ -200,6 +201,11 @@
model: this.image});
this.images = new this.imageCollection();
+ this.networkTemplate = XOSModel.extend({ urlRoot: NETWORKTEMPLATE_API });
+ this.networkTemplateCollection = XOSCollection.extend({ urlRoot: NETWORKTEMPLATE_API,
+ model: this.networkTemplate});
+ this.networkTemplates = new this.networkTemplateCollection();
+
this.network = XOSModel.extend({ urlRoot: NETWORK_API });
this.networkCollection = XOSCollection.extend({ urlRoot: NETWORK_API,
model: this.network});