Commit ebb3945 1 parent 18bc044 commit ebb3945 Copy full SHA for ebb3945
File tree 5 files changed +41
-2
lines changed
5 files changed +41
-2
lines changed Original file line number Diff line number Diff line change @@ -1727,7 +1727,7 @@ table allow to change properties of a virtual router. Attributes:
1727
1727
- 'ip_opt_action' contains packet action. Defines the action for
1728
1728
packets with IP options
1729
1729
- 'l3_mc_action' contains packet action. Defines the action for
1730
- unknown L3 multicast packets
1730
+ - 'vni' contains L3 VNI value. VNI associated Virtual router instance.
1731
1731
1732
1732
The packet action could be:
1733
1733
@@ -1749,7 +1749,8 @@ The packet action could be:
1749
1749
'src_mac': '02:04:05:06:07:08',
1750
1750
'ttl_action': 'copy',
1751
1751
'ip_opt_action': 'deny',
1752
- 'l3_mc_action': 'drop'
1752
+ 'l3_mc_action': 'drop',
1753
+ 'vni': '100'
1753
1754
}
1754
1755
```
1755
1756
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