summaryrefslogtreecommitdiffstats
path: root/routing/routing-api/src/main/yang/vpp-routing.yang
diff options
context:
space:
mode:
authorJan Srnicek <jsrnicek@cisco.com>2016-11-10 09:48:40 +0100
committerMaros Marsalek <mmarsale@cisco.com>2016-11-10 09:11:50 +0000
commitaa7e652e6105a6972d6c41ff0738cd9e31ce0188 (patch)
tree14e5247b9a702723ff10177677078f232213f75c /routing/routing-api/src/main/yang/vpp-routing.yang
parentbe5cfe7728f780e08aa466d69259d8f1e3a45be3 (diff)
HONEYCOMB-58 - Routing Api
Change-Id: Id887c12bea1983c0d185689c633902b691cf52f6 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
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