import org.apache.karaf.shell.commands.Argument;
import org.apache.karaf.shell.commands.Command;
import org.apache.karaf.shell.console.OsgiCommandSupport;
+import org.eclipse.jdt.annotation.Nullable;
import org.opendaylight.netvirt.elanmanager.api.IElanService;
import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.elan.etree.rev160614.EtreeInterface;
import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.elan.rev150602.elan.interfaces.ElanInterface;
}
@Override
+ @Nullable
protected Object doExecute() {
- LOG.debug("Deleting EtreeInterface command" + "\t" + etreeName + "\t" + interfaceName + "\t");
+ LOG.debug("Deleting EtreeInterface command etreeName:{}, interfaceName:{}", etreeName, interfaceName);
ElanInterface existingInterface =
elanProvider.getElanInterfaceByElanInterfaceName(interfaceName);
- if (existingInterface == null || existingInterface.getAugmentation(EtreeInterface.class) == null) {
+ if (existingInterface == null || existingInterface.augmentation(EtreeInterface.class) == null) {
session.getConsole()
.println("Etree interface doesn't exist or isn't configured as etree: " + interfaceName);
}