Commit ab4c548
authored
Vnet_name added in create_only patterns (#3878)
What I did
Added support to mark the vnet_name field as a create-only field in VLAN_INTERFACE, VLAN_SUB_INTERFACE, and INTERFACE tables.
How I did it
Updated patch_sorter.py to include the following patterns as create-only fields:
["VLAN_SUB_INTERFACE", "*", "vnet_name"],
["VLAN_INTERFACE", "*", "vnet_name"],
["INTERFACE", "*", "vnet_name"]
Added test data in patch_sorter_test.py to verify these fields are identified as create-only.
Updated change_applier_test.data.json with example entries containing vnet_name fields.
Added unit tests in patch_sorter_test_success.json for test_patch_sorter_success in patch_sorter_test.py1 parent 04a2005 commit ab4c548
File tree
4 files changed
+384
-1
lines changed- generic_config_updater
- tests/generic_config_updater
- files
4 files changed
+384
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
574 | 577 | | |
575 | 578 | | |
576 | 579 | | |
| |||
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
139 | 144 | | |
140 | 145 | | |
141 | 146 | | |
| |||
232 | 237 | | |
233 | 238 | | |
234 | 239 | | |
235 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
236 | 244 | | |
237 | 245 | | |
238 | 246 | | |
| |||
244 | 252 | | |
245 | 253 | | |
246 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
247 | 261 | | |
248 | 262 | | |
249 | 263 | | |
| |||
0 commit comments