Add missing parameters to RPC call 93/73293/2
authorJosh <jhershbe@redhat.com>
Thu, 21 Jun 2018 08:08:18 +0000 (11:08 +0300)
committerSam Hague <shague@redhat.com>
Thu, 21 Jun 2018 18:53:08 +0000 (18:53 +0000)
JIRA: NETVIRT-1133

Change-Id: I82d32cee4814f60fa986585fcaef2c5d8119c7de
Signed-off-by: Josh <jhershbe@redhat.com>
natservice/impl/src/main/java/org/opendaylight/netvirt/natservice/internal/NatTunnelInterfaceStateListener.java

index d2874eb264ae52be7e1dccba7c798a7944ee1aa6..67a267a480fdc329e164c604325762bed1dcda85 100644 (file)
@@ -64,6 +64,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.Group
 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.fib.rpc.rev160121.CreateFibEntryInput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.fib.rpc.rev160121.CreateFibEntryInputBuilder;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.fib.rpc.rev160121.CreateFibEntryOutput;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.fib.rpc.rev160121.FibEntryInputs;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.fib.rpc.rev160121.FibRpcService;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.fib.rpc.rev160121.RemoveFibEntryInput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.fib.rpc.rev160121.RemoveFibEntryInputBuilder;
@@ -774,6 +775,7 @@ public class NatTunnelInterfaceStateListener
             CreateFibEntryInput input =
                     new CreateFibEntryInputBuilder().setVpnName(externalVpnName).setSourceDpid(srcDpnId)
                     .setInstruction(customInstructions).setIpAddress(fibExternalIp)
+                    .setIpAddressSource(FibEntryInputs.IpAddressSource.ExternalFixedIP)
                     .setServiceId(serviceId).setInstruction(customInstructions).build();
             ListenableFuture<RpcResult<CreateFibEntryOutput>> listenableFuture = fibRpcService.createFibEntry(input);
 
@@ -905,6 +907,7 @@ public class NatTunnelInterfaceStateListener
                 customInstructions.add(new InstructionGotoTable(NwConstants.PDNAT_TABLE).buildInstruction(0));
                 CreateFibEntryInput input = new CreateFibEntryInputBuilder().setVpnName(vpnName)
                     .setSourceDpid(fipCfgdDpnId).setInstruction(customInstructions)
+                    .setIpAddressSource(FibEntryInputs.IpAddressSource.FloatingIP)
                     .setIpAddress(fibExternalIp).setServiceId(serviceId).setInstruction(customInstructions)
                         .build();
                 ListenableFuture<RpcResult<CreateFibEntryOutput>> listenableFuture =