Fixup Augmentable and Identifiable methods changing
[netvirt.git] / elanmanager / impl / src / main / java / org / opendaylight / netvirt / elan / cli / etree / EtreeInterfaceAdd.java
index 8fa054386aef348bc195dd0f2b662928d12015af..633b6e269b67cc54ff84d978454020385c4e8a1d 100644 (file)
@@ -59,7 +59,7 @@ public class EtreeInterfaceAdd extends OsgiCommandSupport {
             session.getConsole().println("Etree instance " + elanName + " does not exist.");
             return null;
         } else {
-            if (elanInstance.getAugmentation(EtreeInstance.class) == null) {
+            if (elanInstance.augmentation(EtreeInstance.class) == null) {
                 session.getConsole().println("Etree instance " + elanName + " exists but isn't configured as Etree.");
                 return null;
             }