Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0237191BF for ; Fri, 9 Mar 2012 17:43:29 +0000 (UTC) Received: (qmail 13031 invoked by uid 500); 9 Mar 2012 17:43:28 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 13015 invoked by uid 500); 9 Mar 2012 17:43:28 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 13007 invoked by uid 99); 9 Mar 2012 17:43:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 17:43:28 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of marios@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 17:43:23 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q29Hh3WW012911 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 9 Mar 2012 12:43:03 -0500 Received: from name.redhat.com (ovpn-112-19.ams2.redhat.com [10.36.112.19]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q29HgqPp005164 for ; Fri, 9 Mar 2012 12:43:01 -0500 From: marios@redhat.com To: dev@deltacloud.apache.org Subject: [PATCH 4/4] CIMI - adds CIMI Client views for index/show network and network_configurations Date: Fri, 9 Mar 2012 19:42:49 +0200 Message-Id: <1331314969-14053-5-git-send-email-marios@redhat.com> In-Reply-To: <1331314969-14053-1-git-send-email-marios@redhat.com> References: <1331314969-14053-1-git-send-email-marios@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-Virus-Checked: Checked by ClamAV on apache.org From: marios Signed-off-by: marios --- .../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(-) create mode 100644 clients/cimi/views/network_configurations/index.haml create mode 100644 clients/cimi/views/network_configurations/show.haml create mode 100644 clients/cimi/views/networks/index.haml create mode 100644 clients/cimi/views/networks/show.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 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 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 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 -- 1.7.6.5