summaryrefslogtreecommitdiffstats
path: root/v3po/v3po2vpp/src/main
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2016-12-07 10:21:48 +0100
committerMarek Gradzki <mgradzki@cisco.com>2016-12-07 10:21:54 +0100
commitfb7dd3797b431d2a14c574c712fdf43bb9acb7a3 (patch)
tree097130a96c960bbee7fc220f34c31972b186f02a /v3po/v3po2vpp/src/main
parentfcf957e1cab42f11422001d6b088f8edbc06af21 (diff)
Update sw_interface_span_enable_disable translation after vpp api change
Api hcange was introduced by https://gerrit.fd.io/r/#/c/4049/ Change-Id: If1f3a0ce301369f3e6cb5bde8553feb9dd2ed881 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'v3po/v3po2vpp/src/main')
-rw-r--r--v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/interfaces/span/MirroredInterfacesCustomizer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/interfaces/span/MirroredInterfacesCustomizer.java b/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/interfaces/span/MirroredInterfacesCustomizer.java
index c45bc6aa8..b7376332d 100644
--- a/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/interfaces/span/MirroredInterfacesCustomizer.java
+++ b/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/interfaces/span/MirroredInterfacesCustomizer.java
@@ -83,7 +83,7 @@ public final class MirroredInterfacesCustomizer
private SwInterfaceSpanEnableDisable getSpanAddDelRequest(final int dstId, final Integer srcId, final boolean isAdd) {
final SwInterfaceSpanEnableDisable spanAddDel = new SwInterfaceSpanEnableDisable();
- spanAddDel.enable = (byte) (isAdd ? 1 : 0);
+ spanAddDel.state = (byte) (isAdd ? 3 : 0); // 3 - enable rx & tx : 0 - disabled
spanAddDel.swIfIndexFrom = srcId;
spanAddDel.swIfIndexTo = dstId;
return spanAddDel;