ADD opennebula to html 63/7763/1
authoralbertoflorez <alberto.florezpages@telefonica.com>
Mon, 8 Jul 2019 11:36:00 +0000 (13:36 +0200)
committeralbertoflorez <alberto.florezpages@telefonica.com>
Mon, 8 Jul 2019 11:39:04 +0000 (13:39 +0200)
Change-Id: I7e3db0ef8d51e35ad60ed66432eabb3b2f3b464a
Signed-off-by: albertoflorez <alberto.florezpages@telefonica.com>
vimhandler/template/config/opennebula.html [new file with mode: 0644]
vimhandler/template/config/opennebula_show.html [new file with mode: 0644]
vimhandler/template/vim_create.html

diff --git a/vimhandler/template/config/opennebula.html b/vimhandler/template/config/opennebula.html
new file mode 100644 (file)
index 0000000..87eeda8
--- /dev/null
@@ -0,0 +1,33 @@
+<div id="opennebula_config_collapse" class="config-vim row">
+    <div class="col-lg-6">
+        <div class="row ">
+            <div class="form-group">
+                <label for="ov_sdn_ctrl" class="col-sm-4 control-label">SDN Controller</label>
+                <div class="col-sm-6 input-group input-group-sm">
+                    <input disabled class="form-control config-input" id="ov_sdn_ctrl" name="config_sdn_controller"
+                           placeholder="sdn_controller">
+                </div>
+            </div>
+        </div>
+        <div class="row">
+            <div class="form-group">
+                <label for="ov_sdn_port_map" class="col-sm-4 control-label">SDN Port Mapping</label>
+                <div class="col-sm-6 input-group input-group-sm">
+                    <input disabled class="form-control config-input" id="ov_sdn_port_map"
+                           name="config_sdn_port_mapping"
+                           placeholder="sdn_port_mapping">
+                </div>
+            </div>
+        </div>
+        <div class="row">
+            <div class="form-group">
+                <label for="ov_vim_network_name" class="col-sm-4 control-label">VIM network name</label>
+                <div class="col-sm-6 input-group input-group-sm">
+                    <input disabled class="form-control config-input" id="ov_vim_network_name"
+                           name="config_vim_network_name"
+                           placeholder="vim_network_name">
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
\ No newline at end of file
diff --git a/vimhandler/template/config/opennebula_show.html b/vimhandler/template/config/opennebula_show.html
new file mode 100644 (file)
index 0000000..7833e72
--- /dev/null
@@ -0,0 +1,24 @@
+<div id="opennebula_config_collapse" class="config-vim row">
+
+    <div class="col-lg-6">
+        <div class="row ">
+
+            <label for="ov_sdn_ctrl" class="col-sm-4 control-label">SDN Controller</label>
+            <div class="col-sm-6 input-group input-group-sm">
+                <p id="ov_sdn_ctrl"> {{ datacenter.sdn_ctrl|default:"---" }}</p>
+            </div>
+        </div>
+        <div class="row">
+            <label for="ov_sdn_port_map" class="col-sm-4 control-label">SDN Port Mapping</label>
+            <div class="col-sm-6 input-group input-group-sm">
+                <p id="ov_sdn_port_map"> {{ datacenter.sdn_port_map|default:"---" }}</p>
+            </div>
+        </div>
+        <div class="row">
+            <label for="ov_vim_network_name" class="col-sm-4 control-label">VIM network name</label>
+            <div class="col-sm-6 input-group input-group-sm">
+                <p id="ov_vim_network_name"> {{ datacenter.config.vim_network_name|default:"---" }}</p>
+            </div>
+        </div>
+    </div>
+</div>
index f7f91a2..4dccc37 100644 (file)
@@ -59,6 +59,7 @@
                                                 <option value="openstack">Openstack</option>
                                                 <option value="vmware">VMware vCD</option>
                                                 <option value="aws">AWS</option>
+                                                <option value="opennebula">OpenNebula</option>
                                             </select>
                                         </div>
                                     </div>
                                 {% include 'config/openstack.html' %}
                                 {% include 'config/vmware.html' %}
                                 {% include 'config/aws.html' %}
+                                {% include 'config/opennebula.html' %}
 
                                 <div class="row">
                                     <div class="col-lg-6">