X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=vpnservice%2Ffibmanager%2Ffibmanager-api%2Fsrc%2Fmain%2Fyang%2Fodl-fib.yang;h=d75be2603556201d8fa417d58fa59144fd256ed3;hb=1f62e61ed08350f524075cfec5428366baa52053;hp=d5219e1a2740a1616647c1d6525ae5cb17434730;hpb=82024e464c99ff6edaae7f63d578bf1b0b571208;p=netvirt.git diff --git a/vpnservice/fibmanager/fibmanager-api/src/main/yang/odl-fib.yang b/vpnservice/fibmanager/fibmanager-api/src/main/yang/odl-fib.yang index d5219e1a27..d75be26035 100644 --- a/vpnservice/fibmanager/fibmanager-api/src/main/yang/odl-fib.yang +++ b/vpnservice/fibmanager/fibmanager-api/src/main/yang/odl-fib.yang @@ -23,7 +23,6 @@ module odl-fib { } leaf mac { type string; - mandatory false; } leaf origin { type string; @@ -144,10 +143,78 @@ module odl-fib { leaf dest-prefix { type string; } - leaf-list rds { - type string; + list allocated-rds { + key nexthop; + leaf nexthop { + type string; + description "Ip address of the VM which is the nexthop for the extra route"; + } + leaf rd {type string;} } } } } + + container ip-prefix-map { + description "Stores information about a parent vpn and prefix in that parent vpn, + along with what other vpn-instances import the parent vpn"; + config false; + list ip-prefix-info { + key "prefix parent-primary-rd"; + leaf prefix { + type string; + } + leaf parent-primary-rd { + type string; + } + leaf dpn-id { + type uint64; + } + leaf-list vpn-instance-list { + type string; + } + leaf parent-vpnid { + type uint32; + } + leaf vpn-interface-name { + type string; + } + leaf elan-tag { + type uint32; + } + leaf is-subnet-route { + type boolean; + } + leaf encap-type { + type enumeration { + enum mplsgre { + value "0"; + } + enum vxlan { + value "1"; + } + } + default "mplsgre"; + } + leaf l3vni { + type uint32; + } + leaf l2vni { + type uint32; + } + list route-paths { + key "nexthop-address"; + leaf nexthop-address { + type string; + } + leaf label { + type uint32; + } + leaf gateway_mac_address { + type string; + } + } + } + } + }