Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update: add eni id to eip tab

  • Loading branch information...
commit 8f639f63b9fe09f53323e8adda08861edc11a5fc 1 parent 53bb9f0
@winebarrel winebarrel authored
View
3  ec2ui/content/ec2ui/controller.js
@@ -2165,7 +2165,8 @@ var ec2ui_controller = {
var domain = getNodeValueByName(items[i], "domain");
var allocationId = getNodeValueByName(items[i], "allocationId");
var associationId = getNodeValueByName(items[i], "associationId");
- list.push(new AddressMapping(publicIp, instanceid, domain, allocationId, associationId));
+ var networkInterfaceId = getNodeValueByName(items[i], "networkInterfaceId");
+ list.push(new AddressMapping(publicIp, instanceid, domain, allocationId, associationId, networkInterfaceId));
}
this.addResourceTags(list, ec2ui_session.model.resourceMap.eips, "address");
View
3  ec2ui/content/ec2ui/eip_tab_overlay.xul
@@ -67,6 +67,9 @@
<treecol id="eip.instanceName" label="Instance Name" flex="1" sortDirection="ascending"
persist="width ordinal hidden sortDirection" />
<splitter class="tree-splitter" />
+ <treecol id="eip.networkInterfaceId" label="Network Interface ID" flex="3"
+ persist="width ordinal hidden sortDirection" />
+ <splitter class="tree-splitter" />
<treecol id="eip.tag" label="Tag" flex="5"
persist="width ordinal hidden sortDirection" />
<splitter class="tree-splitter" />
View
2  ec2ui/content/ec2ui/eipview.js
@@ -1,5 +1,5 @@
var ec2ui_ElasticIPTreeView = {
- COLNAMES : ['eip.address','eip.allocationId','eip.instanceid','eip.instanceName','eip.domain','eip.associationId'],
+ COLNAMES : ['eip.address','eip.allocationId','eip.instanceid','eip.instanceName','eip.networkInterfaceId','eip.domain','eip.associationId'],
treeBox : null,
selection : null,
arrLocalFiles : new Array(),
View
3  ec2ui/content/ec2ui/model.js
@@ -198,12 +198,13 @@ function AvailabilityZone(name, state) {
this.state = state;
}
-function AddressMapping(address, instanceid, domain, allocationId, associationId, tag) {
+function AddressMapping(address, instanceid, domain, allocationId, associationId, networkInterfaceId, tag) {
this.address = address;
this.allocationId = allocationId;
this.instanceid = instanceid;
this.domain = domain;
this.associationId = associationId;
+ this.networkInterfaceId = networkInterfaceId;
if (tag) this.tag = tag;
}
Please sign in to comment.
Something went wrong with that request. Please try again.