ElanInstance elanInstance = createElanInstance(input);
// Create ELAN interface and IETF interfaces for the physical network
elanService.createExternalElanNetwork(elanInstance);
- if (input.getAugmentation(NetworkL3Extension.class).isExternal()) {
+ if (NeutronvpnUtils.getIsExternal(input)) {
nvpnNatManager.addExternalNetwork(input);
NeutronvpnUtils.addToNetworkCache(input);
}
elanService.deleteExternalElanNetwork(elanInstance);
deleteElanInstance(elanInstanceName);
}
- if (input.getAugmentation(NetworkL3Extension.class).isExternal()) {
+ if (NeutronvpnUtils.getIsExternal(input)) {
nvpnNatManager.removeExternalNetwork(input);
NeutronvpnUtils.removeFromNetworkCache(input);
}
update);
}
- if (update.getAugmentation(NetworkL3Extension.class).isExternal()) {
+ if (NeutronvpnUtils.getIsExternal(update)) {
NeutronvpnUtils.addToNetworkCache(update);
}