Fix for failed transaction
[unimgr.git] / netvirt / src / main / java / org / opendaylight / unimgr / mef / netvirt / NetvirtVpnUtils.java
index 7337df2ff96872e55b5c943b1994c5588689c3d3..7fe1dd1c69292b5393fed592d4a952232c7dae86 100644 (file)
@@ -283,6 +283,14 @@ public class NetvirtVpnUtils {
         MdsalUtils.commitTransaction(tx);
     }
 
+    public static void createVpnPortFixedIp(DataBroker dataBroker, String vpnName, String portName, IpPrefix ipAddress,
+            MacAddress macAddress, WriteTransaction tx) {
+        String fixedIpPrefix = ipPrefixToString(ipAddress);
+        String fixedIp = getIpAddressFromPrefix(fixedIpPrefix);
+
+        createVpnPortFixedIp(vpnName, portName, fixedIp, macAddress, tx);
+    }
+
     private static void createVpnPortFixedIp(String vpnName, String portName, String fixedIp, MacAddress macAddress,
             WriteTransaction tx) {
         synchronized ((vpnName + fixedIp).intern()) {