ing
This commit is contained in:
parent
832e1e34bf
commit
6796fd8216
|
@ -37,7 +37,7 @@ export class NicDropdownComponent implements OnInit {
|
|||
ifaces.forEach(iface => {
|
||||
console.log(iface);
|
||||
iface.addresses.forEach(address => {
|
||||
if (address.metaIPType.key != toMetaIPType(MetaIPTypeEnum.V4).key) {
|
||||
if (address.metaIPType.key !== toMetaIPType(MetaIPTypeEnum.V4).key) {
|
||||
return;
|
||||
}
|
||||
this.nics.push({
|
||||
|
@ -48,7 +48,7 @@ export class NicDropdownComponent implements OnInit {
|
|||
mac: iface.mac,
|
||||
address: address.address,
|
||||
},
|
||||
disabled: address.metaIPType.key != toMetaIPType(MetaIPTypeEnum.V4).key ? true : false,
|
||||
disabled: address.metaIPType.key !== toMetaIPType(MetaIPTypeEnum.V4).key ? true : false,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -68,13 +68,13 @@ export class NicDropdownComponent implements OnInit {
|
|||
nicSelected(nic: SelectItem) {
|
||||
this.selected = nic;
|
||||
|
||||
var zone: Zone = {
|
||||
network: this.selected.address,
|
||||
const zone: Zone = {
|
||||
network: this.selected.network,
|
||||
iface: this.selected.name,
|
||||
metaIPType: toMetaIPType(MetaIPTypeEnum.V4),
|
||||
address: this.selected.address.split('/')[0],
|
||||
address: this.selected.address,
|
||||
mac: this.selected.mac,
|
||||
}
|
||||
};
|
||||
this.select.emit(zone);
|
||||
|
||||
this.panel.hide();
|
||||
|
|
Loading…
Reference in New Issue
Block a user