deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [1/4] git commit: CIMI - adds CIMI Client views for index/show network and network_configurations
Date Mon, 12 Mar 2012 11:13:44 GMT
Updated Branches:
  refs/heads/master 61ac9fef9 -> 01dcde5a0


CIMI - adds CIMI Client views for index/show network and network_configurations


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/01dcde5a
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/01dcde5a
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/01dcde5a

Branch: refs/heads/master
Commit: 01dcde5a0cc9cb3f2740a1455e59069a635db183
Parents: 2217520
Author: marios <marios@redhat.com>
Authored: Fri Mar 9 19:39:13 2012 +0200
Committer: marios <marios@redhat.com>
Committed: Fri Mar 9 19:40:32 2012 +0200

----------------------------------------------------------------------
 .../cimi/views/network_configurations/index.haml   |   34 +++++++++++
 .../cimi/views/network_configurations/show.haml    |   43 ++++++++++++++
 clients/cimi/views/networks/index.haml             |   34 +++++++++++
 clients/cimi/views/networks/show.haml              |   45 +++++++++++++++
 4 files changed, 156 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/01dcde5a/clients/cimi/views/network_configurations/index.haml
----------------------------------------------------------------------
diff --git a/clients/cimi/views/network_configurations/index.haml b/clients/cimi/views/network_configurations/index.haml
new file mode 100644
index 0000000..155baca
--- /dev/null
+++ b/clients/cimi/views/network_configurations/index.haml
@@ -0,0 +1,34 @@
+- @title=@network_configs.description
+
+- content_for :breadcrumb do
+  %ul.breadcrumb
+    %li
+      %a{ :href => "/cimi/cloudEntryPoint"} CloudEntryPoint
+      %span.divider="/"
+    %li.active
+      NetworkConfigurationCollection
+- content_for :actions do
+  %p
+    %a{ :href => "#{@network_configs.uri}?format=xml", :class => 'label warning' }
XML
+    %a{ :href => "#{@network_configs.uri}?format=json", :class => 'label warning' }
JSON
+
+%blockquote
+  %p
+    A Network Configuration Collection entity represents the collection
+    of Network Configurations within a Provider. This entity can be used
+    to locate and create Network Configurations
+
+%ul
+  - @network_configs.network_configurations.each do |conf|
+    %li
+      %a{ :href => "/cimi/network_configurations/#{conf.href.split('/').last}"}=conf.href.split('/').last
+
+%h3 Collection details
+
+%dl
+  %dt URI
+  %dd=@network_configs.uri
+  %dt Description
+  %dd=@network_configs.description
+  %dt Created
+  %dd=@network_configs.created

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/01dcde5a/clients/cimi/views/network_configurations/show.haml
----------------------------------------------------------------------
diff --git a/clients/cimi/views/network_configurations/show.haml b/clients/cimi/views/network_configurations/show.haml
new file mode 100644
index 0000000..676ee9c
--- /dev/null
+++ b/clients/cimi/views/network_configurations/show.haml
@@ -0,0 +1,43 @@
+- @title="#{@network_config.name}"
+
+- content_for :breadcrumb do
+  %ul.breadcrumb
+    %li
+      %a{ :href => "/cimi/cloudEntryPoint"} CloudEntryPoint
+      %span.divider="/"
+    %li
+      %a{ :href => "/cimi/network_configurations"} NetworkConfigurationCollection
+      %span.divider="/"
+    %li.active
+      = @network_config.name
+
+- content_for :actions do
+  %p
+    %a{ :href => "#{@network_config.uri}?format=xml", :class => 'label warning' } XML
+    %a{ :href => "#{@network_config.uri}?format=json", :class => 'label warning' }
JSON
+
+%blockquote
+  %p
+    A Network Configuration entity is the set of configuration values representing
+    the information needed to create a Network with certain characteristics.
+
+%dl
+  %dt URI
+  %dd
+    %a{ :href => @network_config.uri }=@network_config.uri
+  %dt Description
+  %dd=@network_config.description
+  %dt Created
+  %dd=@network_config.created
+  %dt Access
+  %dd=@network_config.access
+  %dt Bandwidth Limit
+  %dd=@network_config.bandwidth_limit
+  %dt Traffic Priority
+  %dd=@network_config.traffic_priority
+  %dt Maximum Traffic Delay
+  %dd=@network_config.max_traffic_delay
+  %dt Maximum Traffic Loss
+  %dd=@network_config.max_traffic_loss
+  %dt Maximum Traffic Jitter
+  %dd=@network_config.max_traffic_jitter

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/01dcde5a/clients/cimi/views/networks/index.haml
----------------------------------------------------------------------
diff --git a/clients/cimi/views/networks/index.haml b/clients/cimi/views/networks/index.haml
new file mode 100644
index 0000000..699ebf8
--- /dev/null
+++ b/clients/cimi/views/networks/index.haml
@@ -0,0 +1,34 @@
+- @title=@networks.description
+
+- content_for :breadcrumb do
+  %ul.breadcrumb
+    %li
+      %a{ :href => "/cimi/cloudEntryPoint"} CloudEntryPoint
+      %span.divider="/"
+    %li.active
+      NetworkCollection
+
+- content_for :actions do
+  %p
+    %a{ :href => "#{@networks.uri}?format=xml", :class => 'label warning' } XML
+    %a{ :href => "#{@networks.uri}?format=json", :class => 'label warning' } JSON
+
+%blockquote
+  %p
+    A Network Collection entity represents the collection of Networks
+    within a Provider. This entity can be used to locate and create Networks.
+
+%ul
+  - @networks.networks.each do |network|
+    %li
+      %a{ :href => "/cimi/networks/#{network.href.split('/').last}"}=network.href.split('/').last
+
+%h3 Collection details
+
+%dl
+  %dt URI
+  %dd=@networks.uri
+  %dt Description
+  %dd=@networks.description
+  %dt Created
+  %dd=@networks.created

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/01dcde5a/clients/cimi/views/networks/show.haml
----------------------------------------------------------------------
diff --git a/clients/cimi/views/networks/show.haml b/clients/cimi/views/networks/show.haml
new file mode 100644
index 0000000..111254a
--- /dev/null
+++ b/clients/cimi/views/networks/show.haml
@@ -0,0 +1,45 @@
+- @title="#{@network.name}"
+
+- content_for :breadcrumb do
+  %ul.breadcrumb
+    %li
+      %a{ :href => "/cimi/cloudEntryPoint"} CloudEntryPoint
+      %span.divider="/"
+    %li
+      %a{ :href => "/cimi/networks"} NetworkCollection
+      %span.divider="/"
+    %li.active
+      = @network.name
+
+- content_for :actions do
+  %p
+    %a{ :href => "#{@network.uri}?format=xml", :class => 'label warning' } XML
+    %a{ :href => "#{@network.uri}?format=json", :class => 'label warning' } JSON
+
+%blockquote
+  %p
+    This entity represents a Network - a realized entity
+    that represents an abstraction of a layer 2 broadcast domain.
+
+%dl
+  %dt URI
+  %dd
+    %a{ :href => @network.uri }=@network.uri
+  %dt Description
+  %dd=@network.description
+  %dt Created
+  %dd=@network.created
+  %dt State
+  %dd=@network.state
+  %dt Access
+  %dd=@network.access
+  %dt Bandwidth Limit
+  %dd=@network.bandwidth_limit
+  %dt Traffic Priority
+  %dd=@network.traffic_priority
+  %dt Maximum Traffic Delay
+  %dd=@network.max_traffic_delay
+  %dt Maximum Traffic Loss
+  %dd=@network.max_traffic_loss
+  %dt Maximum Traffic Jitter
+  %dd=@network.max_traffic_jitter


Mime
View raw message