diff options
author | Michal Cmarada <mcmarada@cisco.com> | 2019-03-20 10:34:09 +0100 |
---|---|---|
committer | Michal Cmarada <mcmarada@cisco.com> | 2019-03-20 10:36:27 +0100 |
commit | e599b1319651e2e5a4415033913d615e3617effa (patch) | |
tree | f820cf53796048a51d2e714061c5f01d2f682d0f /java/jvpp-core/io/fd/jvpp/core/examples/NotificationUtils.java | |
parent | 596802d25220182f76b696b85c9fb4147baa425f (diff) |
Revert "fixes after Interfaces API udate"
This reverts commit 596802d25220182f76b696b85c9fb4147baa425f.
It is a temporary solution until CSIT adapts to these changes. Once done
VPP will reintroduce these API changes and original patch can be applied
again.
Change-Id: Iccdcb3108a7dfa48bf36e485e8d60664c518949e
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
Diffstat (limited to 'java/jvpp-core/io/fd/jvpp/core/examples/NotificationUtils.java')
-rw-r--r-- | java/jvpp-core/io/fd/jvpp/core/examples/NotificationUtils.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/java/jvpp-core/io/fd/jvpp/core/examples/NotificationUtils.java b/java/jvpp-core/io/fd/jvpp/core/examples/NotificationUtils.java index aef953f..7b78389 100644 --- a/java/jvpp-core/io/fd/jvpp/core/examples/NotificationUtils.java +++ b/java/jvpp-core/io/fd/jvpp/core/examples/NotificationUtils.java @@ -16,9 +16,7 @@ package io.fd.jvpp.core.examples; -import io.fd.jvpp.core.types.InterfaceIndex; import java.io.PrintStream; -import io.fd.jvpp.core.types.IfStatusFlags; import io.fd.jvpp.core.dto.SwInterfaceSetFlags; import io.fd.jvpp.core.dto.SwInterfaceEvent; import io.fd.jvpp.core.dto.WantInterfaceEvents; @@ -33,10 +31,8 @@ final class NotificationUtils { static SwInterfaceSetFlags getChangeInterfaceState() { final SwInterfaceSetFlags swInterfaceSetFlags = new SwInterfaceSetFlags(); - swInterfaceSetFlags.flags = new IfStatusFlags(); - swInterfaceSetFlags.flags.add(IfStatusFlags.IfStatusFlagsOptions.IF_STATUS_API_FLAG_ADMIN_UP); - swInterfaceSetFlags.swIfIndex = new InterfaceIndex(); - swInterfaceSetFlags.swIfIndex.interfaceindex = 0; + swInterfaceSetFlags.swIfIndex = 0; + swInterfaceSetFlags.adminUpDown = 1; return swInterfaceSetFlags; } |