Fixup Augmentable and Identifiable methods changing
[neutron.git] / neutron-hostconfig / vpp / src / main / java / org / opendaylight / neutron / hostconfig / vpp / NeutronHostconfigVppListener.java
index 205ac3542a28b076c4b58616a3b546b184acef54..c9aca8ea51c67a2e5e77dcb3a3e993a5820955dd 100644 (file)
@@ -127,7 +127,7 @@ public class NeutronHostconfigVppListener implements ClusteredDataTreeChangeList
     private void updateHostConfig(Node node, NeutronHostconfigUtils.Action action) {
         for (Map.Entry<String, String> entry : HostconfigUtil.createHostconfigsDataFor(node.getNodeId(), socketInfo)
             .entrySet()) {
-            LOG.info("Updating hostconfig for node {}. Action: {}.", node.getKey(), action);
+            LOG.info("Updating hostconfig for node {}. Action: {}.", node.key(), action);
             neutronHostconfig.updateMdsal(neutronHostconfig.buildHostConfigInfo(node.getNodeId().getValue(),
                     entry.getKey(), entry.getValue()), action);
         }
@@ -135,7 +135,7 @@ public class NeutronHostconfigVppListener implements ClusteredDataTreeChangeList
 
     private boolean validateVppNode(Node node) {
         LOG.info("Registering new node {}", node.getNodeId().getValue());
-        NetconfNode netconfNode = node.getAugmentation(NetconfNode.class);
+        NetconfNode netconfNode = node.augmentation(NetconfNode.class);
         if (netconfNode == null) {
             LOG.warn("Node {} is not a netconf device", node.getNodeId().getValue());
             return false;