Commit 8132363a authored by Maria Arsuaga Rios's avatar Maria Arsuaga Rios
Browse files

FTS-977: Updating types

parent e7b01bd8
Pipeline #159913 passed with stage
in 16 seconds
......@@ -43,7 +43,7 @@ class LinkConfig(Base):
source = Column(String(150), primary_key=True, name='source_se')
destination = Column(String(150), primary_key=True, name='dest_se')
symbolicname = Column(String(255), unique=True)
symbolicname = Column(String(255), unique=True, name='symbolic_name')
min_active = Column(Integer)
max_active = Column(Integer)
optimizer_mode = Column (Integer)
......@@ -61,8 +61,8 @@ class Se(Base):
storage = Column(String(150), primary_key=True)
site = Column(String(45))
se_metadata = Column(String(255), name='metadata')
ipv6 = Column(Flag(negative='off', positive='on'), default='off')
udt = Column(Flag(negative='off', positive='on'))
ipv6 = Column(Integer)
udt = Column(Integer)
debug_level = Column(Integer)
inbound_max_active = Column(Integer)
inbound_max_throughput = Column(Float)
......
......@@ -71,8 +71,8 @@ function getSubForm(form, klass)
subset.outbound_max_active = parseInt(subform.find("input[name='outbound_max_active']").val());
subset.inbound_max_active = parseFloat(subform.find("input[name='inbound_max_throughput']").val());
subset.outbound_max_active = parseFloat(subform.find("input[name='outbound_max_throughput']").val());
subset.ipv6 = (subform.find("select[name='ipv6']").val() == "true");
subset.udt = (subform.find("select[name='udt']").val() == "true");
subset.ipv6 = parseInt(subform.find("input[name='ipv6']").val());
subset.udt = parseInt(subform.find("input[name='udt']").val());
subset.debug_level = parseInt(subform.find("input[name='debug_level']").val());
return subset;
......
......@@ -45,16 +45,16 @@ configuration'"/>
</div>
<div class="form-group">
<label>IPv6</label>
<select class="form-control" name="ipv6">
<option value="true" {{selected ipv6 true}}>Yes</option>
<option value="false" {{selected ipv6 false}}>No</option>
<select class="form-control" type="number" name="ipv6">
<option value="1" {{selected ipv6 true}}>Yes</option>
<option value="0" {{selected ipv6 false}}>No</option>
</select>
</div>
<div class="form-group">
<label>UDT</label>
<select class="form-control" name="udt">
<option value="true" {{selected udt true}}>Yes</option>
<option value="false" {{selected udt false}}>No</option>
<select class="form-control" type="number" name="udt">
<option value="1" {{selected udt true}}>Yes</option>
<option value="0" {{selected udt false}}>No</option>
</select>
</div>
<div class="form-group">
......@@ -161,7 +161,7 @@ configuration'"/>
<div class="form-group">
<label for="inbound_max_active">Inbound Max Active</label> <input
class="form-control" name="inbound_max_active" id="inbound_max_active"
type="text">
type="number">
</div>
<div class="form-group">
<label for="inbound_max_active">Inbound Max Active</label> <input
......@@ -184,20 +184,15 @@ configuration'"/>
type="number">
</div>
<div class="form-group">
<label for="ipv6">IPv6</label> <select
class="form-control" name="ipv6" id="ipv6">
<option value="true">Yes</option>
<option value="false">No</option>
</select>
<label for="ipv6">IPv6</label>
<input class="form-control" name="ipv6" id="ipv6" type="number" min="0" max="1">
</div>
<div class="form-group">
<label for="udt"> UDT <i
class="glyphicon glyphicon-question-sign"
title="If set, FTS3 will enable UDT for this endpoint, but will fallback to non-UDT on error"></i>
</label> <select class="form-control" id="udt" name="udt">
<option value="true">Yes</option>
<option value="false">No</option>
</select>
</label>
<input class="form-control" name="udt" id="udt" type="number" min="0" max="1">
</div>
<div class="form-group">
<label for="debug_level">Debug Level</label> <input
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment