mirror of
https://github.com/apache/cloudstack
synced 2026-08-02 05:26:35 +00:00
Merge branch '4.10'
This commit is contained in:
commit
d17728dd7e
@ -26,11 +26,19 @@
|
||||
tags: elem.tags
|
||||
};
|
||||
|
||||
if (typeof elem.icmptype != 'undefined') {
|
||||
var icmptype = elem.icmptype.toString()
|
||||
}
|
||||
|
||||
if (typeof elem.icmpcode != 'undefined') {
|
||||
var icmpcode = elem.icmpcode.toString()
|
||||
}
|
||||
|
||||
if (elemData.startport == 0 && elemData.endport) {
|
||||
elemData.startport = '0';
|
||||
} else if (elem.icmptype && elem.icmpcode) {
|
||||
elemData.startport = elem.icmptype;
|
||||
elemData.endport = elem.icmpcode;
|
||||
} else if (icmptype && icmpcode) {
|
||||
elemData.startport = icmptype;
|
||||
elemData.endport = icmpcode;
|
||||
}
|
||||
|
||||
return elemData;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user