-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
Copy pathsonic-vrf.yang
61 lines (50 loc) · 1.53 KB
/
sonic-vrf.yang
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module sonic-vrf {
namespace "http://github.com/sonic-net/sonic-vrf";
prefix vrf;
import sonic-extension {
prefix sonic-ext;
}
import sonic-types {
prefix stypes;
}
organization
"SONiC";
contact
"SONiC";
description
"SONIC VRF";
revision 2021-03-30 {
description
"Initial revision.";
}
container sonic-vrf {
container VRF {
description "Vrf configuration.";
list VRF_LIST {
key "name";
leaf name {
type stypes:interface_name {
pattern "Vrf[a-zA-Z0-9_-]+" {
error-message "Invalid VRF name";
error-app-tag vrf-name-invalid;
}
}
}
leaf fallback {
type boolean;
default false;
description
"Enable/disable fallback feature which is useful for specified VRF user to access internet through global/main route.";
}
leaf vni {
type uint32 {
range "0..16777215";
}
default 0;
description
"VNI mapped to VRF";
}
} /* end of list VRF_LISt */
} /* end of container VRf */
} /* end of container sonic-vrf */
}/* end of module sonic-vrf */