summaryrefslogtreecommitdiffstats
path: root/v3po/api/src/main/yang/v3po.yang
diff options
context:
space:
mode:
Diffstat (limited to 'v3po/api/src/main/yang/v3po.yang')
-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;