SNAT地址池管理提交.
This commit is contained in:
@@ -924,18 +924,18 @@ var fillIp=function (ip){
|
||||
}
|
||||
return ip;
|
||||
}
|
||||
// snat复用地址池ip唯一
|
||||
jQuery.validator.addMethod("ipUnique",function(value, element) {
|
||||
// 地址池校验
|
||||
jQuery.validator.addMethod("addrPoolUnique",function(value, element) {
|
||||
var ctx=$(element).attr("ctx");
|
||||
var cfgId= $("[name='cfgId']").val();
|
||||
var functionId= $("[name='functionId']").val();
|
||||
var url = ctx+"/maintenance/ipMultiplexPoolCfg/checkIp";
|
||||
var url = ctx+"/maintenance/ipMultiplexPoolCfg/checkAddrPool";
|
||||
var result = true;
|
||||
$.ajax({
|
||||
type:'post',
|
||||
async:false,
|
||||
url: url,
|
||||
data:{"cfgId":cfgId,"functionId":functionId,"destIpAddress":value},
|
||||
data:{"cfgId":cfgId,"functionId":functionId,"addrPoolName":value},
|
||||
success:function(data){
|
||||
result = data;
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
protocolPort:"TCP protocol or UDP protocol must be chosen when port is greater than 0",
|
||||
protocolPort1:"Only when TCP protocol or UDP protocol is chosen can port greater than 0",
|
||||
netAddress:"The class C type of IP addresses must has the same network number bit field",
|
||||
ipUnique:"IP already exists.",
|
||||
addrPoolUnique:"Address Pool already exists.",
|
||||
asnNoUnique:"ASN already exists.",
|
||||
areaUnique:"Area already exists."
|
||||
});
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
protocolPort:"Если порт больше 0, необходимо выбрать протокол TCP или протокол UDP",
|
||||
protocolPort1:"Только при выборе протокола TCP или протокола UDP порт может быть больше 0",
|
||||
netAddress:"Тип IP-адресов класса C должен иметь один и тот же номер сети бит поля.",
|
||||
ipUnique:"IP уже существует.",
|
||||
addrPoolUnique:"Address Pool уже существует.",
|
||||
asnNoUnique:"ASN уже существует.",
|
||||
areaUnique:"Регион уже существует."
|
||||
});
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
protocolPort:"端口大于0时必须选择TCP协议或者UDP协议",
|
||||
protocolPort1:"只有tcp,udp协议端口号可以不为0",
|
||||
netAddress:"C类IP地址网络位必须相同",
|
||||
ipUnique:"IP已存在",
|
||||
addrPoolUnique:"地址池已存在",
|
||||
asnNoUnique:"ASN号已存在",
|
||||
areaUnique:"该区域已存在"
|
||||
});
|
||||
|
||||
@@ -33,7 +33,7 @@ $(function(){
|
||||
$("form input[name$='cfgKeywords']").attr("maxlength","1024");
|
||||
$("form input[class~='domainCheck']").attr("maxlength","1024");
|
||||
//截取过长的文字 使用id选择器;例如:tab对象->tr->td对象. 排除日志table .logTb
|
||||
$("#contentTable").find("td").each(function(i,element){
|
||||
$("#contentTable").find("td").not(":has(a)").each(function(i,element){
|
||||
//获取td当前对象的文本,如果长度大于25;
|
||||
if(!$(element).find(".tooltips").length>0){
|
||||
var tdclass= $(this).attr("class");//no_substr 不进行截取
|
||||
|
||||
Reference in New Issue
Block a user