diff options
author | 2018-01-02 14:04:33 +0100 | |
---|---|---|
committer | 2018-01-02 15:08:19 +0100 | |
commit | 730a7ee0267663fdc525ad7b0c50318ef73e520f (patch) | |
tree | 8cf6c31d2fa26acd44dc04e72d0ed23c54597b6c /v3po/api/src/main/yang/unnumbered-interfaces@2018-01-03.yang | |
parent | a340bbc450cfe904f9e3ba8332ad738855cc1143 (diff) |
HC2VPP-157: use interface-ref instead of string name
Change-Id: Iaf1287c6643c783ff2d31d9ef87e90aa85ea53f1
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'v3po/api/src/main/yang/unnumbered-interfaces@2018-01-03.yang')
-rw-r--r-- | v3po/api/src/main/yang/unnumbered-interfaces@2018-01-03.yang | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/v3po/api/src/main/yang/unnumbered-interfaces@2018-01-03.yang b/v3po/api/src/main/yang/unnumbered-interfaces@2018-01-03.yang new file mode 100644 index 000000000..391e05363 --- /dev/null +++ b/v3po/api/src/main/yang/unnumbered-interfaces@2018-01-03.yang @@ -0,0 +1,49 @@ +module unnumbered-interfaces { + yang-version 1; + namespace "urn:opendaylight:params:xml:ns:yang:unnumbered:interfaces"; + prefix "uni"; + + revision "2018-01-03" { + description + "Use if:interface-ref for name of the interface which provides IP."; + } + + 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 if:interface-ref; + 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 |