summaryrefslogtreecommitdiffstats
path: root/routing/routing-api/src/main/yang/vpp-routing.yang
diff options
context:
space:
mode:
Diffstat (limited to 'routing/routing-api/src/main/yang/vpp-routing.yang')
-rw-r--r--routing/routing-api/src/main/yang/vpp-routing.yang59
1 files changed, 59 insertions, 0 deletions
diff --git a/routing/routing-api/src/main/yang/vpp-routing.yang b/routing/routing-api/src/main/yang/vpp-routing.yang
new file mode 100644
index 000000000..1979db9e1
--- /dev/null
+++ b/routing/routing-api/src/main/yang/vpp-routing.yang
@@ -0,0 +1,59 @@
+module vpp-routing{
+
+ namespace "urn:ietf:params:xml:ns:yang:vpp-routing";
+ prefix "vpp-routing";
+ description "General extensions for routes to be able to use VPP route defining apis";
+
+ revision 2016-10-18 {
+ description "Initial revision.";
+ }
+
+ import yang-ext {
+ prefix "ext";
+ }
+
+ import vpp-classifier {
+ prefix "classifier";
+ }
+
+ typedef vni-reference{
+ type uint32;
+ description "Vrf index reference";
+ }
+
+ grouping vpp-routing-attributes{
+ //vrf_id
+ leaf primary-vrf{
+ type vni-reference;
+ mandatory true;
+ description "Main vrf associated to route";
+ }
+
+ leaf auto-create-vrf{
+ type boolean;
+ default false;
+ description "If referenced primary vrf not exists,create while creating route";
+ }
+
+ //lookup_in_vrf
+ leaf secondary-vrf{
+ type vni-reference;
+ description "Optional secondary vrf used to lookup in";
+ }
+
+ leaf classify-table{
+ // classify_table_index + is_classify flag
+ type classifier:classify-table-ref;
+ description "Optional reference to classify table";
+ }
+ }
+
+ grouping vpp-routing-state-attributes{
+ //vrf_id
+ leaf primary-vrf{
+ type vni-reference;
+ mandatory true;
+ description "Main vrf associated to route";
+ }
+ }
+} \ No newline at end of file