summaryrefslogtreecommitdiffstats
path: root/v3po/api/src/main
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2017-05-12 10:06:24 +0200
committerJan Srnicek <jsrnicek@cisco.com>2017-05-16 07:35:55 +0000
commite3ed88b821d1a96cbd321ea85388f0232b55508c (patch)
tree2b3262918c66c51355d9228fcd3d697e0d91bd43 /v3po/api/src/main
parent0119f7e2e8f96c7f6ed6af07200e432c16b837d5 (diff)
HC2VPP-150: yang model for unnumbered interfaces
Change-Id: I0c485baf1b4fee681c5a71df4dd182a4d52a524a Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'v3po/api/src/main')
-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