From 10e52c413c7c94533669c48fc93d1b9a9eef8696 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Thu, 8 Dec 2011 00:08:18 +0100 Subject: [PATCH] Add network.erb for OCCI --- src/cloud/occi/etc/templates/network.erb | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/cloud/occi/etc/templates/network.erb diff --git a/src/cloud/occi/etc/templates/network.erb b/src/cloud/occi/etc/templates/network.erb new file mode 100644 index 0000000000..6dfb23079a --- /dev/null +++ b/src/cloud/occi/etc/templates/network.erb @@ -0,0 +1,25 @@ +# +# This template is processed by the OCCI Server to include specific data for +# the VNET, you should not need to modify the ruby code. +# You can add common attributes for your VNET templates (e.g. VLAN, PHYDEV) +# + +NAME = "<%= @vnet_info['NAME'] %>" +TYPE = RANGED + +NETWORK_ADDRESS = <%= @vnet_info['ADDRESS'] %> +<% if @vnet_info['SIZE'] != nil %> +NETWORK_SIZE = <%= @vnet_info['SIZE']%> +<% end %> + +<% if @vnet_info['DESCRIPTION'] != nil %> +DESCRIPTION = "<%= @vnet_info['DESCRIPTION'] %>" +<% end %> + +<% if @vnet_info['PUBLIC'] != nil %> +PUBLIC = "<%= @vnet_info['PUBLIC'] %>" +<% end %> + +#BRIDGE = NAME_OF_DEFAULT_BRIDGE +#PHYDEV = NAME_OF_PHYSICAL_DEVICE +#VLAN = YES|NO