- private void createExternalElanNetwork(ElanInstance elanInstance, String interfaceName) {
- if (interfaceName == null) {
- LOG.trace("No physial interface is attached to {}", elanInstance.getPhysicalNetworkName());
- return;
- }
-
- String elanInterfaceName = createIetfInterfaces(elanInstance, interfaceName);
- addElanInterface(elanInstance.getElanInstanceName(), elanInterfaceName, null, null);
- }
-
- private void deleteExternalElanNetwork(ElanInstance elanInstance, String interfaceName) {
- if (interfaceName == null) {
- LOG.trace("No physial interface is attached to {}", elanInstance.getPhysicalNetworkName());
- return;
- }
-
- String elanInstanceName = elanInstance.getElanInstanceName();
- for (String elanInterface : getExternalElanInterfaces(elanInstanceName)) {
- if (elanInterface.startsWith(interfaceName)) {
- deleteIetfInterface(elanInterface);
- deleteElanInterface(elanInstanceName, elanInterface);
- }
- }
- }
-