You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/sonic-yang-models/doc/Configuration.md
+12-11
Original file line number
Diff line number
Diff line change
@@ -2546,23 +2546,24 @@ monitoring sessions for the vnet routes and is optional.
2546
2546
2547
2547
### VNET_ROUTE_TUNNEL
2548
2548
2549
-
VNET_ROUTE_TUNNEL table has vnet_name:prefix as the object key, where vnet_name is the name of the VNet and prefix is the prefix associated with the route tunnel. The table includes the following attributes:
2550
-
- ENDPOINT: The IP address of the host VM (mandatory), IPv4 address. It is used to identify the endpoint of the tunnel.
2551
-
- MAC_ADDRESS: The inner destination MAC address in the encapsulated packet (optional). It should be a 12-hexadecimal digit value.
2549
+
VNET_ROUTE_TUNNEL table has vnet_name|prefix as the object key, where vnet_name is the name of the VNet and prefix is the prefix associated with the route tunnel. The table includes the following attributes:
2550
+
- ENDPOINT: The endpoint/nexthop tunnel IP (mandatory). It is used to identify the endpoint of the tunnel.
2551
+
- MAC_ADDRESS: The inner destination MAC address in the encapsulated packet (optional). It should be a 12-hexadeimal digit value.
2552
2552
- VXLANID: The VNI value in the encapsulated packet (optional). It should be a numeric value.
Copy file name to clipboardexpand all lines: src/sonic-yang-models/tests/yang_model_tests/tests/vnet.json
+51
Original file line number
Diff line number
Diff line change
@@ -24,5 +24,56 @@
24
24
"VNET_INVALID_VXLAN_VTEP": {
25
25
"desc": "Missing Vxlan_TUNNEL configuration",
26
26
"eStr" : [ "points to a non-existing leaf" ]
27
+
},
28
+
"VNET_ROUTE_TUNNEL_MIN_TEST": {
29
+
"desc": "Basic VNET route tunnel configuration with minimal required field - endpoint in VNET_ROUTE_TUNNEL_LIST table."
30
+
},
31
+
32
+
"VNET_ROUTE_TUNNEL_MULTI_TEST": {
33
+
"desc": "Multiple VNET route tunnel configurations for different VNETs in VNET_ROUTE_TUNNEL_LIST table."
34
+
},
35
+
36
+
"VNET_ROUTE_TUNNEL_COMPLETE_TEST": {
37
+
"desc": "Complete VNET route tunnel configuration with all optional fields (including mac_address and vxlanid)in VNET_ROUTE_TUNNEL_LIST table."
38
+
},
39
+
40
+
"VNET_ROUTE_TUNNEL_TEST_DUPLICATE_NAME": {
41
+
"desc": "VNET route tunnel configuration with duplicate name keys in VNET_ROUTE_TUNNEL_LIST table.",
42
+
"eStr": "Duplicated instance of \"VNET_ROUTE_TUNNEL_LIST\" list."
43
+
},
44
+
45
+
"VNET_ROUTE_TUNNEL_TEST_INVALID_ENDPOINT": {
46
+
"desc": "VNET route tunnel configuration with invalid endpoint IP value (256.256.256.256) in VNET_ROUTE_TUNNEL_LIST table.",
47
+
"eStr": "Value \"256.256.256.256\" does not satisfy the constraint"
48
+
},
49
+
50
+
"VNET_ROUTE_TUNNEL_TEST_INVALID_MAC": {
51
+
"desc": "VNET route tunnel configuration with invalid MAC address format (non-hexadecimal characters) in VNET_ROUTE_TUNNEL_LIST table.",
52
+
"eStr": "Value \"GG:HH:II:JJ:KK:LL\" does not satisfy the constraint \"[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}\""
53
+
},
54
+
55
+
"VNET_ROUTE_TUNNEL_TEST_INVALID_VXLANID": {
56
+
"desc": "VNET route tunnel configuration with invalid VXLAN ID (exceeding max value of 16777215) in VNET_ROUTE_TUNNEL_LIST table.",
57
+
"eStr": "Value \"16777216\" does not satisfy the constraint \"1..16777215\""
58
+
},
59
+
60
+
"VNET_ROUTE_TUNNEL_TEST_INVALID_NAME_FORMAT": {
61
+
"desc": "VNET route tunnel configuration with invalid name format (missing pipe and prefix) in VNET_ROUTE_TUNNEL_LIST table.",
62
+
"eStr": "Value \"Vnet1\" does not satisfy the constraint \"[^|]+[|]((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2])))\" (range, length, or pattern)\""
63
+
},
64
+
65
+
"VNET_ROUTE_TUNNEL_TEST_INVALID_PREFIX": {
66
+
"desc": "VNET route tunnel configuration with invalid prefix format (300.168.1.0/24) in name field.",
67
+
"eStr": "Value \"Vnet1|300.168.1.0/24\" does not satisfy the constraint \"[^|]+[|]((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2])))\" (range, length, or pattern)\""
68
+
},
69
+
70
+
"VNET_ROUTE_TUNNEL_TEST_MISSING_ENDPOINT": {
71
+
"desc": "VNET route tunnel configuration with missing mandatory attribute (endpoint) in VNET_ROUTE_TUNNEL_LIST table.",
72
+
"eStr": "Missing required element \"endpoint\" in \"VNET_ROUTE_TUNNEL_LIST\"."
73
+
},
74
+
75
+
"VNET_ROUTE_TUNNEL_TEST_NONEXISTENT_VNET": {
76
+
"desc": "VNET route tunnel configuration referencing a non-existent VNET name, violating the must condition.",
77
+
"eStr": "VNET name in the key must reference a valid VNET in the VNET table"
0 commit comments