From: marios <[email protected]>

Signed-off-by: marios <[email protected]>
---
 clients/cimi/views/network_templates/index.haml |   29 +++++++++++++++++++++++
 clients/cimi/views/network_templates/show.haml  |   28 ++++++++++++++++++++++
 clients/cimi/views/networks/show.haml           |    1 +
 clients/cimi/views/routing_groups/index.haml    |   29 +++++++++++++++++++++++
 clients/cimi/views/routing_groups/show.haml     |   29 +++++++++++++++++++++++
 5 files changed, 116 insertions(+), 0 deletions(-)
 create mode 100644 clients/cimi/views/network_templates/index.haml
 create mode 100644 clients/cimi/views/network_templates/show.haml
 create mode 100644 clients/cimi/views/routing_groups/index.haml
 create mode 100644 clients/cimi/views/routing_groups/show.haml

diff --git a/clients/cimi/views/network_templates/index.haml 
b/clients/cimi/views/network_templates/index.haml
new file mode 100644
index 0000000..09eed69
--- /dev/null
+++ b/clients/cimi/views/network_templates/index.haml
@@ -0,0 +1,29 @@
+- @title=@network_templates.description
+
+- content_for :breadcrumb do
+  %ul.breadcrumb
+    %li
+      %a{ :href => "/cimi/cloudEntryPoint"} CloudEntryPoint
+      %span.divider="/"
+    %li.active
+      NetworkTemplateCollection
+- content_for :actions do
+  %p
+    %a{ :href => "#{@network_templates.id}?format=xml", :class => 'label 
warning' } XML
+    %a{ :href => "#{@network_templates.id}?format=json", :class => 'label 
warning' } JSON
+
+%blockquote
+  %p
+    A Network Template Collection entity represents the collection of 
NetworkTemplates within a Provider.
+    This resource can be used to locate and create NetworkTemplates
+
+%h3 NetworkTemplateCollection
+%ul
+  - @network_templates.network_templates.each do |template|
+    %li
+      %a{ :href => 
"/cimi/network_templates/#{template.href.split('/').last}"}=template.href.split('/').last
+
+-details 'NetworkTemplateCollection details' do
+  -row 'ID', @network_templates.id
+  -row 'Description', @network_templates.description
+  -row 'Created', @network_templates.created
diff --git a/clients/cimi/views/network_templates/show.haml 
b/clients/cimi/views/network_templates/show.haml
new file mode 100644
index 0000000..7977b74
--- /dev/null
+++ b/clients/cimi/views/network_templates/show.haml
@@ -0,0 +1,28 @@
+- @title="#{@network_template.name}"
+
+- content_for :breadcrumb do
+  %ul.breadcrumb
+    %li
+      %a{ :href => "/cimi/cloudEntryPoint"} CloudEntryPoint
+      %span.divider="/"
+    %li
+      %a{ :href => "/cimi/network_templates"} NetworkTemplateCollection
+      %span.divider="/"
+    %li.active
+      = @network_template.name
+
+- content_for :actions do
+  %p
+    %a{ :href => "#{@network_template.id}?format=xml", :class => 'label 
warning' } XML
+    %a{ :href => "#{@network_template.id}?format=json", :class => 'label 
warning' } JSON
+%blockquote
+  %p
+    The Network Template is a set of configuration values for realizing a 
Network.
+    An instance of Network Template may be used to create multiple Networks
+
+-details 'NetworkConfiguration details' do
+  -row 'ID', @network_template.id
+  -row 'Description',@network_template.description
+  -row 'Created',@network_template.created
+  -row 'NetworkConfiguration', @network_template.network_config.href
+  -row 'RoutingGroup', @network_template.routing_group.href
diff --git a/clients/cimi/views/networks/show.haml 
b/clients/cimi/views/networks/show.haml
index 7aaf37e..8ec560a 100644
--- a/clients/cimi/views/networks/show.haml
+++ b/clients/cimi/views/networks/show.haml
@@ -27,6 +27,7 @@
   -row 'Created', @network.created
   -row 'State', @network.state
   -row 'Access', @network.access
+  -row 'RoutingGroup', @network.routing_group.href
   -row 'Bandwidth Limit', @network.bandwidth_limit
   -row 'Traffic Priority', @network.traffic_priority
   -row 'Maximum Traffic Delay', @network.max_traffic_delay
diff --git a/clients/cimi/views/routing_groups/index.haml 
b/clients/cimi/views/routing_groups/index.haml
new file mode 100644
index 0000000..0fde8b4
--- /dev/null
+++ b/clients/cimi/views/routing_groups/index.haml
@@ -0,0 +1,29 @@
+- @title=@routing_groups.description
+
+- content_for :breadcrumb do
+  %ul.breadcrumb
+    %li
+      %a{ :href => "/cimi/cloudEntryPoint"} CloudEntryPoint
+      %span.divider="/"
+    %li.active
+      RoutingGroupCollection
+- content_for :actions do
+  %p
+    %a{ :href => "#{@routing_groups.id}?format=xml", :class => 'label warning' 
} XML
+    %a{ :href => "#{@routing_groups.id}?format=json", :class => 'label 
warning' } JSON
+
+%blockquote
+  %p
+    A Routing Group Collection entity represents the collection of Routing 
Groups
+    within a Provider. This entity can be used to locate and create Routing 
Groups.
+
+%h3 RoutingGroupCollection
+%ul
+  - @routing_groups.routing_groups.each do |group|
+    %li
+      %a{ :href => 
"/cimi/routing_groups/#{group.href.split('/').last}"}=group.href.split('/').last
+
+-details 'RoutingGroupCollection details' do
+  -row 'ID', @routing_groups.id
+  -row 'Description', @routing_groups.description
+  -row 'Created', @routing_groups.created
diff --git a/clients/cimi/views/routing_groups/show.haml 
b/clients/cimi/views/routing_groups/show.haml
new file mode 100644
index 0000000..757de0b
--- /dev/null
+++ b/clients/cimi/views/routing_groups/show.haml
@@ -0,0 +1,29 @@
+- @title="#{@routing_group.name}"
+
+- content_for :breadcrumb do
+  %ul.breadcrumb
+    %li
+      %a{ :href => "/cimi/cloudEntryPoint"} CloudEntryPoint
+      %span.divider="/"
+    %li
+      %a{ :href => "/cimi/routing_groups"} RoutingGroupCollection
+      %span.divider="/"
+    %li.active
+      = @routing_group.name
+
+- content_for :actions do
+  %p
+    %a{ :href => "#{@routing_group.id}?format=xml", :class => 'label warning' 
} XML
+    %a{ :href => "#{@routing_group.id}?format=json", :class => 'label warning' 
} JSON
+%blockquote
+  %p
+    A Routing Group represents a collection of Networks that route to each 
other.
+
+-details 'RoutingGroup details' do
+  -row 'ID', @routing_group.id
+  -row 'Description',@routing_group.description
+  -row 'Created',@routing_group.created
+
+-details 'RoutingGroup Networks' do
+  -@routing_group.networks.each do |net|
+    -row 'ID', net.href
-- 
1.7.6.5

Reply via email to