From 481fe32d90010b4570fd97239ca6c7940880d133 Mon Sep 17 00:00:00 2001 From: Maros Marsalek Date: Wed, 2 Nov 2016 12:35:50 +0100 Subject: HONEYCOMB-281 Loopback interface management Change-Id: I7e4d817bb7dfe9ccd779e59347c956233c012e4a Signed-off-by: Maros Marsalek --- v3po/api/src/main/yang/v3po.yang | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (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 f272a489a..18b68620e 100644 --- a/v3po/api/src/main/yang/v3po.yang +++ b/v3po/api/src/main/yang/v3po.yang @@ -9,7 +9,8 @@ module v3po { - ingress/egress ACLs support - moved ACL definitions to vpp-acl module - updated l2 container constraint (permit IP address on BVI interface) - - added PID of vpp process to vpp-state"; + - added PID of vpp process to vpp-state + - added support for Loopback interfaces"; } revision "2015-01-05" { @@ -70,6 +71,10 @@ module v3po { base if:interface-type; } + identity loopback { + base if:interface-type; + } + identity l2-fib-action { description "Base identity for l2-fib actions"; } @@ -244,6 +249,14 @@ module v3po { } } + grouping loopback-interface-base-attributes { + leaf mac { + type yang:phys-address; + mandatory false; + description "Mac address of the loopback interface"; + } + } + grouping ethernet-base-attributes { leaf mtu { type uint16 { @@ -436,6 +449,12 @@ module v3po { uses tap-interface-config-attributes; } + container loopback { + presence "Presence of this container indicates loopback nature of the interface"; + when "../if:type = 'v3po:loopback'"; + uses loopback-interface-base-attributes; + } + container ethernet { when "../if:type = 'ianaift:ethernetCsmacd'"; uses ethernet-base-attributes; -- cgit 1.2.3-korg