diff options
Diffstat (limited to 'routing/routing-api/src/main/yang/vpp-routing-types@2018-04-06.yang')
-rw-r--r-- | routing/routing-api/src/main/yang/vpp-routing-types@2018-04-06.yang | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/routing/routing-api/src/main/yang/vpp-routing-types@2018-04-06.yang b/routing/routing-api/src/main/yang/vpp-routing-types@2018-04-06.yang new file mode 100644 index 000000000..bba228b73 --- /dev/null +++ b/routing/routing-api/src/main/yang/vpp-routing-types@2018-04-06.yang @@ -0,0 +1,60 @@ +module vpp-routing-types { + + namespace "urn:ietf:params:xml:ns:yang:vpp-routing-types"; + prefix "vpp-routing-types"; + + organization + "FD.io - The Fast Data Project"; + + contact + "Hc2vpp Wiki <https://wiki.fd.io/view/Hc2vpp> + Mailing List <hc2vpp@lists.fd.io>"; + + description + "This module contains a collection of YANG definitions + that extend hc2vpp-ietf-routing-types module + with VPP specific data. + + Copyright (c) 2018 Bell Canada, Pantheon.tech and/or its affiliates. + + Licensed under the Apache License, Version 2.0 (the 'License'); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at: + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an 'AS IS' BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License."; + + revision 2018-04-06 { + description "Initial revision."; + } + + /*** Collection of types related to VPP routing ***/ + + typedef vni-reference { + type uint32; + description "Vrf index reference"; + } + + /*** Groupings ***/ + + grouping vpp-next-hop-attributes { + leaf weight{ + type uint8; + description "Weight classification for next hop in list of next hops"; + } + } + + grouping table-lookup-case-params { + leaf secondary-vrf { + type vni-reference; + mandatory true; + description "Secondary vrf used to lookup in"; + } + // uses special deaggregation address every time : 0.0.0.0 + } +} |