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