Commit 95ce319 1 parent ee1b6b3 commit 95ce319 Copy full SHA for 95ce319
File tree 5 files changed +41
-1
lines changed
5 files changed +41
-1
lines changed Original file line number Diff line number Diff line change @@ -1883,6 +1883,7 @@ table allow to change properties of a virtual router. Attributes:
1883
1883
packets with IP options
1884
1884
- 'l3_mc_action' contains packet action. Defines the action for
1885
1885
unknown L3 multicast packets
1886
+ - 'vni' contains L3 VNI value. VNI associated Virtual router instance.
1886
1887
1887
1888
The packet action could be:
1888
1889
@@ -1904,7 +1905,8 @@ The packet action could be:
1904
1905
'src_mac': '02:04:05:06:07:08',
1905
1906
'ttl_action': 'copy',
1906
1907
'ip_opt_action': 'deny',
1907
- 'l3_mc_action': 'drop'
1908
+ 'l3_mc_action': 'drop',
1909
+ 'vni': '100'
1908
1910
}
1909
1911
```
1910
1912
Original file line number Diff line number Diff line change 2
2
"SAMPLE_CONFIG_DB_JSON" : {
3
3
"VRF" : {
4
4
"Vrf_blue" : {
5
+ "vni" : " 100"
5
6
}
6
7
},
7
8
"DHCP_SERVER" : {
Original file line number Diff line number Diff line change 8
8
},
9
9
"VRF_TEST_WITH_FALLBACK" : {
10
10
"desc" : " Configure VRF with fallback in VRF table."
11
+ },
12
+ "VRF_TEST_WITH_VNI" : {
13
+ "desc" : " Configure VRF with VNI in VRF table."
14
+ },
15
+ "VRF_TEST_WITH_VNI_OOR" : {
16
+ "desc" : " Configure VRF with out of range VNI in VRF table." ,
17
+ "eStrKey" : " Range"
11
18
}
12
19
}
Original file line number Diff line number Diff line change 28
28
}]
29
29
}
30
30
}
31
+ },
32
+
33
+ "VRF_TEST_WITH_VNI" : {
34
+ "sonic-vrf:sonic-vrf" : {
35
+ "sonic-vrf:VRF" : {
36
+ "VRF_LIST" : [{
37
+ "name" : " Vrf_blue" ,
38
+ "vni" : " 100"
39
+ }]
40
+ }
41
+ }
42
+ },
43
+
44
+ "VRF_TEST_WITH_VNI_OOR" : {
45
+ "sonic-vrf:sonic-vrf" : {
46
+ "sonic-vrf:VRF" : {
47
+ "VRF_LIST" : [{
48
+ "name" : " Vrf_blue" ,
49
+ "vni" : " 16777216"
50
+ }]
51
+ }
52
+ }
31
53
}
32
54
}
Original file line number Diff line number Diff line change @@ -43,6 +43,14 @@ module sonic-vrf {
43
43
"Enable/disable fallback feature which is useful for specified VRF user to access internet through global/main route." ;
44
44
}
45
45
46
+ leaf vni {
47
+ type uint32 {
48
+ range "0..16777215" ;
49
+ }
50
+ default 0 ;
51
+ description
52
+ "VNI mapped to VRF" ;
53
+ }
46
54
} /* end of list VRF_LISt */
47
55
} /* end of container VRf */
48
56
} /* end of container sonic-vrf */
You can’t perform that action at this time.
0 commit comments