diff options
author | Maros Marsalek <mmarsale@cisco.com> | 2016-11-02 12:35:50 +0100 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2016-11-03 10:42:21 +0000 |
commit | 481fe32d90010b4570fd97239ca6c7940880d133 (patch) | |
tree | 7bee74daf22b47e434f897be15ea23da4ba03a40 /v3po/api/src/main/yang/v3po.yang | |
parent | 99690c76206676204fa1aec9860c80cc1d79f4ea (diff) |
HONEYCOMB-281 Loopback interface management
Change-Id: I7e4d817bb7dfe9ccd779e59347c956233c012e4a
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'v3po/api/src/main/yang/v3po.yang')
-rw-r--r-- | v3po/api/src/main/yang/v3po.yang | 21 |
1 files changed, 20 insertions, 1 deletions
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; |