Imported vpnservice as a subtree
[netvirt.git] / vpnservice / fibmanager / fibmanager-api / src / main / yang / odl-fib.yang
1 module odl-fib {
2     namespace "urn:opendaylight:vpnservice:fibmanager";
3     prefix odl-fib;
4
5     revision "2015-03-30" {
6         description "FIB Manager module";
7     }
8
9     grouping ipv4Entries{
10         list ipv4Entry{
11             key  "destPrefix";
12             leaf destPrefix {type string;}
13             leaf nextHopAddress {type string;}
14         }
15     }
16
17     grouping vrfEntries{
18         list vrfEntry{
19             key  "destPrefix";
20             leaf destPrefix {
21                 type string;
22                 mandatory true;
23             }
24             leaf label {
25                 type uint32;
26                 mandatory true;
27             }
28             leaf nextHopAddress {
29                 type string;
30             }
31         }
32     }
33
34     container fibEntries {
35         config true;
36         list vrfTables{
37             key "routeDistinguisher";
38             leaf routeDistinguisher {type string;}
39             uses vrfEntries;
40         }
41
42         container ipv4Table{
43             uses  ipv4Entries;
44         }
45     }
46 }