From cb00de1bc91091060dfb688876b45b7dc740318e Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Mon, 13 Jun 2016 10:01:40 +0200 Subject: HONEYCOMB-91: write customizer for L2FibEntry Change-Id: I80353d9468924df755b7dfe2fca33515becdb8b5 Signed-off-by: Marek Gradzki --- v3po/api/src/main/yang/v3po.yang | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'v3po/api') diff --git a/v3po/api/src/main/yang/v3po.yang b/v3po/api/src/main/yang/v3po.yang index 9d0c286fc..e01edf34c 100644 --- a/v3po/api/src/main/yang/v3po.yang +++ b/v3po/api/src/main/yang/v3po.yang @@ -149,6 +149,7 @@ module v3po { } } + // TODO express constraints for L2 FIB entries in YANG if possible grouping l2-fib-attributes { container l2-fib-table { list l2-fib-entry { @@ -160,19 +161,25 @@ module v3po { leaf outgoing-interface { type string; - mandatory true; + // 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 description - "One of interfaces assigned to the FIB table's bridge-domain"; + "One of interfaces assigned to the FIB table's bridge-domain."; } leaf static-config { type boolean; default false; description - "Static entries cannot be overridden by mac learning"; + "Static entries cannot be overridden by mac learning."; } leaf action { type l2-fib-action; mandatory true; + description + "L2 FIB action. For filter action, entry must be configured as static."; } leaf bridged-virtual-interface { when "../v3po:action = 'forward'"; -- cgit 1.2.3-korg