]> git.proxmox.com Git - mirror_frr.git/blob - yang/frr-test-module.yang
zebra, lib: fix the ZEBRA_INTERFACE_VRF_UPDATE zapi message
[mirror_frr.git] / yang / frr-test-module.yang
1 module frr-test-module {
2 yang-version 1.1;
3 namespace "urn:frr-test-module";
4 prefix frr-test-module;
5
6 import ietf-inet-types {
7 prefix inet;
8 }
9 import ietf-yang-types {
10 prefix yang;
11 }
12 import frr-interface {
13 prefix frr-interface;
14 }
15
16 revision 2018-11-26 {
17 description
18 "Initial revision.";
19 }
20
21 container frr-test-module {
22 config false;
23 container vrfs {
24 list vrf {
25 key "name";
26
27 leaf name {
28 type string;
29 }
30 container interfaces {
31 leaf-list interface {
32 type string;
33 }
34 }
35 container routes {
36 list route {
37 leaf prefix {
38 type inet:ipv4-prefix;
39 }
40 leaf next-hop {
41 type inet:ipv4-address;
42 }
43 leaf interface {
44 type string;
45 }
46 leaf metric {
47 type uint8;
48 }
49 leaf active {
50 type empty;
51 }
52 }
53 }
54 }
55 }
56 }
57 }