summaryrefslogtreecommitdiffstats
path: root/fib-management/fib-management-api/src/main/yang/vpp-fib-table-management@2018-05-21.yang
diff options
context:
space:
mode:
authorMichal Cmarada <michal.cmarada@pantheon.tech>2018-06-15 11:04:29 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-06-18 09:39:46 +0000
commitb44b5a2a1ee8ba193265708272be97fd6f11d010 (patch)
tree0519e9962a549c5b2030a74746b10dfe5ed361c9 /fib-management/fib-management-api/src/main/yang/vpp-fib-table-management@2018-05-21.yang
parentc6e27c7f0e1f1bc791878f3d0ca277500aad5fe6 (diff)
HC2VPP-317: Update FIB management module
- added type definitions for referencing FIB tables from different data modules Change-Id: I92a25107db6937dc94b4e719f2da2b8c77ebdac4 Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
Diffstat (limited to 'fib-management/fib-management-api/src/main/yang/vpp-fib-table-management@2018-05-21.yang')
-rw-r--r--fib-management/fib-management-api/src/main/yang/vpp-fib-table-management@2018-05-21.yang29
1 files changed, 24 insertions, 5 deletions
diff --git a/fib-management/fib-management-api/src/main/yang/vpp-fib-table-management@2018-05-21.yang b/fib-management/fib-management-api/src/main/yang/vpp-fib-table-management@2018-05-21.yang
index 7a80f912c..b55f5f115 100644
--- a/fib-management/fib-management-api/src/main/yang/vpp-fib-table-management@2018-05-21.yang
+++ b/fib-management/fib-management-api/src/main/yang/vpp-fib-table-management@2018-05-21.yang
@@ -33,11 +33,7 @@ module vpp-fib-table-management {
description "Initial revision.";
}
- typedef vni-reference {
- type uint32;
- description "VRF index reference";
- }
-
+ /* IDENTITIES */
identity address-family-identity {
description "Base identity from which identities describing address families are derived.";
}
@@ -52,6 +48,28 @@ module vpp-fib-table-management {
description "This identity represents an IPv6 address family.";
}
+ /* TYPE DEFINITIONS */
+ typedef vni-reference {
+ type uint32;
+ description "VRF index reference";
+ }
+
+ typedef address-family-type {
+ type identityref {
+ base vpp-fib-table-management:address-family-identity;
+ }
+ description "This type is used to refer to a FIB table type";
+ }
+
+ typedef fib-table-list-ref {
+ type leafref {
+ path "/vpp-fib-table-management:fib-table-management/vpp-fib-table-management:fib-tables/" +
+ "vpp-fib-table-management:table/vpp-fib-table-management:table-id";
+ }
+ description "This type is used by data models that need to reference a FIB table";
+ }
+
+ /* GROUPINGS */
grouping vpp-fib-table-management {
container fib-tables {
description
@@ -109,6 +127,7 @@ module vpp-fib-table-management {
}
}
+ /* MAIN CONTAINER */
container fib-table-management {
description "Configuration parameters for FIB table management";