X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=natservice%2Fnatservice-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fvpnservice%2Fnatservice%2Finternal%2FNAPTEntryEvent.java;fp=natservice%2Fnatservice-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fvpnservice%2Fnatservice%2Finternal%2FNAPTEntryEvent.java;h=8a16f7c873ae14abd43cac128609a2c688ccb0f5;hb=45320706157e8500aaa5e085d05ad4373c289d5f;hp=0000000000000000000000000000000000000000;hpb=5d9a52407447e8656f58ff5df8612dc59afe1508;p=vpnservice.git diff --git a/natservice/natservice-impl/src/main/java/org/opendaylight/vpnservice/natservice/internal/NAPTEntryEvent.java b/natservice/natservice-impl/src/main/java/org/opendaylight/vpnservice/natservice/internal/NAPTEntryEvent.java new file mode 100644 index 00000000..8a16f7c8 --- /dev/null +++ b/natservice/natservice-impl/src/main/java/org/opendaylight/vpnservice/natservice/internal/NAPTEntryEvent.java @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ + +package org.opendaylight.vpnservice.natservice.internal; + + +public class NAPTEntryEvent { + private String ipAddress; + private int portNumber; + private Long routerId; + private Operation op; + private Protocol protocol; + + public String getIpAddress() { + return ipAddress; + } + + public int getPortNumber() { + return portNumber; + } + + public Long getRouterId() { + return routerId; + } + + public Operation getOperation() { + return op; + } + + public Protocol getProtocol() { + return protocol; + } + + NAPTEntryEvent(String ipAddress, int portNumber, Long routerId, Operation op, Protocol protocol){ + this.ipAddress = ipAddress; + this.portNumber = portNumber; + this.routerId = routerId; + this.op = op; + this.protocol = protocol; + } + + public enum Operation{ + ADD, DELETE; + } + + public enum Protocol{ + TCP, UDP; + } +}