Unsupported operation exception handling
[netvirt.git] / natservice / impl / src / main / java / org / opendaylight / netvirt / natservice / internal / EvpnDnatFlowProgrammer.java
index 2fd1886fcddf5f39bcb5c096afbb14e9d858efbd..70698a6d267248250232927db052bc362b73ce55 100644 (file)
@@ -380,7 +380,7 @@ public class EvpnDnatFlowProgrammer {
         Flow terminatingServiceTableFlowEntity = MDSALUtil.buildFlowNew(NwConstants.INTERNAL_TUNNEL_TABLE,
                 NatEvpnUtil.getFlowRef(dpnId, NwConstants.INTERNAL_TUNNEL_TABLE, l3Vni, NatConstants.DNAT_FLOW_NAME),
                 NatConstants.DEFAULT_VPN_INTERNAL_TUNNEL_TABLE_PRIORITY + 1,
-                String.format("%s:%d", "TST Flow Entry ", l3Vni),
+                String.format("%s:%s", "TST Flow Entry ", l3Vni),
                 0, 0,
                 Uint64.valueOf(COOKIE_TUNNEL.toJava().add(BigInteger.valueOf(l3Vni.longValue()))),
                 mkMatches, customInstructions);
@@ -401,7 +401,7 @@ public class EvpnDnatFlowProgrammer {
         Flow flowEntity = MDSALUtil.buildFlowNew(NwConstants.INTERNAL_TUNNEL_TABLE,
                 NatEvpnUtil.getFlowRef(dpnId, NwConstants.INTERNAL_TUNNEL_TABLE, l3Vni, NatConstants.DNAT_FLOW_NAME),
                 NatConstants.DEFAULT_VPN_INTERNAL_TUNNEL_TABLE_PRIORITY + 1,
-                String.format("%s:%d", "TST Flow Entry ", l3Vni), 0, 0,
+                String.format("%s:%s", "TST Flow Entry ", l3Vni), 0, 0,
                 Uint64.valueOf(COOKIE_TUNNEL.toJava().add(BigInteger.valueOf(l3Vni.longValue()))),
                 mkMatches, null);
         mdsalManager.removeFlow(confTx, dpnId, flowEntity);