1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Feature #5027 (PR #229): Sunstone IPv6 interface

* changed ar-datatable with ranges

* Feature vnet Added IPV6 support to virtual routers
This commit is contained in:
juanmont 2017-03-27 12:32:10 +02:00 committed by Tino Vázquez
parent 57bc086cb8
commit 80b0991cc9
5 changed files with 30 additions and 2 deletions

View File

@ -105,10 +105,10 @@
<legend>{{tr "Override Network Values IPv6"}}</legend>
<div class="row">
<div class="medium-6 columns">
<label for="IP6_GLOBAL">
<label for="IP6">
{{tr "IP"}}
</label>
<input type="text" wizard_field="IP6_GLOBAL" id="IP6_GLOBAL" name="IP6_GLOBAL" size="3" />
<input type="text" wizard_field="IP6" id="IP6" name="IP6" size="3" />
</div>
<div class="medium-6 columns">
<label for="GATEWAY6">

View File

@ -91,6 +91,7 @@ define(function(require) {
NicsSection.insert({},
$(".nicsContext", context),
{ floatingIP: true,
forceIPv6:true,
forceIPv4:true,
management: true,
securityGroups: Config.isFeatureEnabled("secgroups")});

View File

@ -70,6 +70,7 @@ define(function(require) {
NicsSection.insert({},
$(".nicsContext", context),
{ floatingIP: true,
forceIPv6:true,
forceIPv4:true,
management: true,
securityGroups: Config.isFeatureEnabled("secgroups"),

View File

@ -145,6 +145,15 @@ define(function(require) {
}
}
var ip6 = $("input.manual_ip6", $(this)).val();
if (ip6 != undefined){
delete nic["IP6"];
if (ip6 != ""){
nic["IP6"] = ip6;
}
}
delete nic["VROUTER_MANAGEMENT"];
if ($("input.management", $(this)).prop("checked")){

View File

@ -63,6 +63,23 @@
</div>
{{/if}}
</div>
<div class="row">
{{#if options.forceIPv6}}
<div class="medium-6 columns">
<label>
{{tr "Force IPv6:"}}
<span class="tip">
{{tr "Optionally, you can force the IP assigned to the network interface."}}
</span>
{{#if options.nic.IP6}}
<input type="text" class="manual_ip6" value="{{options.nic.IP6}}"/>
{{else}}
<input type="text" class="manual_ip6"/>
{{/if}}
</label>
</div>
{{/if}}
</div>
{{#if options.securityGroups}}
<div class="row collapse">
<h6>