summaryrefslogtreecommitdiffstats
path: root/v3po/api/src/main
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsale@cisco.com>2016-11-02 12:35:50 +0100
committerMarek Gradzki <mgradzki@cisco.com>2016-11-03 10:42:21 +0000
commite4813a654f93763577e792e4b67353fb27948580 (patch)
treea6109f4772e7b2858e165023cc239deea76c55fb /v3po/api/src/main
parentb9dbc0976feae7660c26c7a969167fec0860d02e (diff)
HONEYCOMB-281 Loopback interface management
Change-Id: I7e4d817bb7dfe9ccd779e59347c956233c012e4a Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'v3po/api/src/main')
-rw-r--r--v3po/api/src/main/yang/v3po.yang21
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;