neutron: unbreak of neutron northbound yang model revise
[vpnservice.git] / dhcpservice / dhcpservice-impl / src / main / java / org / opendaylight / vpnservice / dhcpservice / DhcpNeutronPortListener.java
index 385d9192d945dd203f983bcfdf39792da01b714c..2f287f084d01c7a20dacd5fb8b9f2223cb771543 100644 (file)
@@ -64,7 +64,7 @@ public class DhcpNeutronPortListener extends AsyncClusteredDataChangeListenerBas
         if(NeutronUtils.isPortVnicTypeNormal(del)) {
             return;
         }
-        String macAddress = del.getMacAddress();
+        String macAddress = del.getMacAddress().getValue();
         Uuid networkId = del.getNetworkId();
         String segmentationId = DhcpServiceUtils.getSegmentationId(networkId, broker);
         if (segmentationId == null) {
@@ -87,7 +87,7 @@ public class DhcpNeutronPortListener extends AsyncClusteredDataChangeListenerBas
             LOG.trace("Port is normal {}", add);
             return;
         }
-        String macAddress = add.getMacAddress();
+        String macAddress = add.getMacAddress().getValue();
         Uuid networkId = add.getNetworkId();
         String segmentationId = DhcpServiceUtils.getSegmentationId(networkId, broker);
         if (segmentationId == null) {