From 0cd23e576894656b80fda54ec27ceab8ff274c62 Mon Sep 17 00:00:00 2001 From: Jan Srnicek Date: Wed, 14 Dec 2016 15:26:13 +0100 Subject: HONEYCOMB-317 - L2 entry model updates Require either filter to be specified or outgoing-interface reference Change-Id: Iec72348b04520cb3eb6717f970355bd0f52330f7 Signed-off-by: Jan Srnicek Signed-off-by: Marek Gradzki --- v3po/api/src/main/yang/v3po.yang | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'v3po/api/src/main/yang/v3po.yang') 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."; } -- cgit 1.2.3-korg