summaryrefslogtreecommitdiffstats
path: root/v3po/api/src/main/yang
diff options
context:
space:
mode:
Diffstat (limited to 'v3po/api/src/main/yang')
-rw-r--r--v3po/api/src/main/yang/unnumbered-interfaces.yang44
1 files changed, 44 insertions, 0 deletions
diff --git a/v3po/api/src/main/yang/unnumbered-interfaces.yang b/v3po/api/src/main/yang/unnumbered-interfaces.yang
new file mode 100644
index 000000000..18ef2b681
--- /dev/null
+++ b/v3po/api/src/main/yang/unnumbered-interfaces.yang
@@ -0,0 +1,44 @@
+module unnumbered-interfaces {
+ yang-version 1;
+ namespace "urn:opendaylight:params:xml:ns:yang:unnumbered:interfaces";
+ prefix "uni";
+
+ revision "2017-05-10" {
+ description
+ "Initialial revision";
+ }
+
+ import ietf-interfaces {
+ prefix "if";
+ }
+
+ import vpp-vlan {
+ prefix "vpp-vlan";
+ }
+
+ import yang-ext {
+ prefix "ext";
+ }
+
+ grouping unnumbered-config-attributes {
+ container unnumbered {
+ presence "Sets interface as unnumbered";
+ leaf use {
+ type string;
+ mandatory true;
+ description
+ "Name of interface or subinterface which IP is to be borrowed.";
+ }
+ }
+ }
+
+ augment /if:interfaces/if:interface {
+ ext:augment-identifier "interface-unnumbered-augmentation";
+ uses unnumbered-config-attributes;
+ }
+
+ augment /if:interfaces/if:interface/vpp-vlan:sub-interfaces/vpp-vlan:sub-interface {
+ ext:augment-identifier "subinterface-unnumbered-augmentation";
+ uses unnumbered-config-attributes;
+ }
+} \ No newline at end of file