summaryrefslogtreecommitdiffstats
path: root/v3po/api
diff options
context:
space:
mode:
authorJan Srnicek <jsrnicek@cisco.com>2016-12-14 15:26:13 +0100
committerMarek Gradzki <mgradzki@cisco.com>2016-12-14 22:00:07 +0100
commit0cd23e576894656b80fda54ec27ceab8ff274c62 (patch)
tree7c161405107f62dd2ee177befa52a7d67ab6da54 /v3po/api
parent618d9fb357be27b06d27608fa1fc4aecb557c548 (diff)
HONEYCOMB-317 - L2 entry model updatesv1.17.01-RC0
Require either filter to be specified or outgoing-interface reference Change-Id: Iec72348b04520cb3eb6717f970355bd0f52330f7 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com> Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'v3po/api')
-rw-r--r--v3po/api/src/main/yang/v3po.yang10
1 files changed, 4 insertions, 6 deletions
diff --git a/v3po/api/src/main/yang/v3po.yang b/v3po/api/src/main/yang/v3po.yang
index 828a095b0..6333ec58d 100644
--- a/v3po/api/src/main/yang/v3po.yang
+++ b/v3po/api/src/main/yang/v3po.yang
@@ -227,12 +227,10 @@ module v3po {
}
leaf outgoing-interface {
- type string;
- // mandatory true;
- // mandatory for forward action
- // FIXME VPP's CLI does not require to set iface id for filter action
- // VPP's binary api in constrast to CLI does some checks on the iface id value,
- // so currently it has to be set for all actions
+ // either filter must be specified or interface(can't be both)
+ when "../action != 'l2-fib-filter'";
+ type if:interface-ref;
+ // mandatory true; - when is not actually resolved, so mandatory can't be in place
description
"One of interfaces assigned to the FIB table's bridge-domain.";
}