Skip to content

Commit adaa2ec

Browse files
authored
Merge branch 'sonic-net:master' into pr-json-support-platform-temp
2 parents 2dff4d8 + ab4c548 commit adaa2ec

File tree

4 files changed

+384
-1
lines changed

4 files changed

+384
-1
lines changed

generic_config_updater/patch_sorter.py

+3
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,9 @@ def __init__(self, path_addressing):
571571
["BGP_MONITORS", "*", "nhopself"],
572572
["BGP_MONITORS", "*", "rrclient"],
573573
["MIRROR_SESSION", "*", "*"],
574+
["VLAN_SUB_INTERFACE", "*", "vnet_name"],
575+
["VLAN_INTERFACE", "*", "vnet_name"],
576+
["INTERFACE", "*", "vnet_name"],
574577
]
575578

576579
def get_filter(self):

tests/generic_config_updater/files/change_applier_test.data.json

+15-1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@
136136
"type": "LeafRouter"
137137
}
138138
},
139+
"INTERFACE": {
140+
"Ethernet2": {
141+
"vnet_name": "Vnet3"
142+
}
143+
},
139144
"PORT": {
140145
"Ethernet0": {
141146
"alias": "fortyGigE0/0",
@@ -232,7 +237,10 @@
232237
"VLAN_INTERFACE": {
233238
"Vlan1000": {},
234239
"Vlan1000|192.168.0.1/21": {},
235-
"Vlan1000|2603:10b0:b13:c70::1/64": {}
240+
"Vlan1000|2603:10b0:b13:c70::1/64": {},
241+
"Vlan100": {
242+
"vnet_name": "Vnet2"
243+
}
236244
},
237245
"VLAN_MEMBER": {
238246
"Vlan1000|Ethernet12": {
@@ -244,6 +252,12 @@
244252
"Vlan1000|Ethernet28": {
245253
}
246254
},
255+
"VLAN_SUB_INTERFACE": {
256+
"Ethernet0.10": {
257+
"vlan": 10,
258+
"vnet_name": "Vnet1"
259+
}
260+
},
247261
"WRED_PROFILE": {
248262
"AZURE_LOSSLESS": {
249263
"ecn": "ecn_all",

0 commit comments

Comments
 (0)