summaryrefslogtreecommitdiffstats
path: root/vpp-japi/japi/org/openvpp/vppjapi/vppConn.java
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2015-12-17 20:54:54 -0500
committerDave Wallace <dwallacelf@gmail.com>2015-12-17 21:47:54 -0500
commitbf8c15e04273b6d49b4ef5409beb7cfb99b78d0d (patch)
tree426483a5200ee7954782954a5450b08bbceaf8c0 /vpp-japi/japi/org/openvpp/vppjapi/vppConn.java
parent60231f35fa860228f31f40753d94e129e8432988 (diff)
Add ODL honeycomb VPP agent extensions to vppjapi jni java library.
Change-Id: I084ffcf36fbac55c2862035d10b028e35e1e648d Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'vpp-japi/japi/org/openvpp/vppjapi/vppConn.java')
-rw-r--r--vpp-japi/japi/org/openvpp/vppjapi/vppConn.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/vpp-japi/japi/org/openvpp/vppjapi/vppConn.java b/vpp-japi/japi/org/openvpp/vppjapi/vppConn.java
index 12a3f179695..cd957808683 100644
--- a/vpp-japi/japi/org/openvpp/vppjapi/vppConn.java
+++ b/vpp-japi/japi/org/openvpp/vppjapi/vppConn.java
@@ -25,9 +25,12 @@ import java.nio.file.attribute.PosixFilePermissions;
import java.util.Set;
import org.openvpp.vppjapi.vppVersion;
+import org.openvpp.vppjapi.vppInterfaceDetails;
import org.openvpp.vppjapi.vppInterfaceCounters;
import org.openvpp.vppjapi.vppBridgeDomainDetails;
-import org.openvpp.vppjapi.vppL2Fib;
+import org.openvpp.vppjapi.vppIPv4Address;
+import org.openvpp.vppjapi.vppIPv6Address;
+import org.openvpp.vppjapi.vppVxlanTunnelDetails;
public class vppConn {
private static final String LIBNAME = "libvppjni.so.0.0.0";
@@ -43,7 +46,6 @@ public class vppConn {
private static void loadStream(final InputStream is) throws IOException {
final Set<PosixFilePermission> perms = PosixFilePermissions.fromString("rwxr-x---");
final Path p = Files.createTempFile(LIBNAME, null, PosixFilePermissions.asFileAttribute(perms));
-
try {
Files.copy(is, p, StandardCopyOption.REPLACE_EXISTING);
@@ -77,7 +79,7 @@ public class vppConn {
public native int swIfIndexFromName (String interfaceName);
public native String interfaceNameFromSwIfIndex (int swIfIndex);
public native void clearInterfaceTable ();
- public native int swInterfaceDump (byte nameFilterValid, byte [] nameFilter);
+ public native vppInterfaceDetails[] swInterfaceDump (byte nameFilterValid, byte [] nameFilter);
public native int bridgeDomainIdFromName(String bridgeDomain);
public native int findOrAddBridgeDomainId(String bridgeDomain);
public native vppVersion getVppVersion();
@@ -86,4 +88,9 @@ public class vppConn {
public native vppBridgeDomainDetails getBridgeDomainDetails(int bdId);
public native vppL2Fib[] l2FibTableDump(int bdId);
public native int bridgeDomainIdFromInterfaceName(String interfaceName);
+ public native vppIPv4Address[] ipv4AddressDump(String interfaceName);
+ public native vppIPv6Address[] ipv6AddressDump(String interfaceName);
+ public native vppVxlanTunnelDetails[] vxlanTunnelDump(int swIfIndex);
+ public native int setInterfaceDescription (String ifName, String ifDesc);
+ public native String getInterfaceDescription (String ifName);
}