|
1276 | 1276 | - nm_force_replace_new_static_ports.current.9.path == "topology/pod-1/paths-101/pathep-[eth2/9]"
|
1277 | 1277 | - nm_force_replace_new_static_ports.current.9.portEncapVlan == 1209
|
1278 | 1278 |
|
| 1279 | +- name: Replace VLAN of existing static port with bulk |
| 1280 | + cisco.mso.mso_schema_site_anp_epg_staticport: &replace_vlan_static_ports |
| 1281 | + <<: *static_ports_append |
| 1282 | + static_ports: |
| 1283 | + - leaf: 101 |
| 1284 | + pod: pod-1 |
| 1285 | + path: eth2/9 |
| 1286 | + type: port |
| 1287 | + vlan: 1309 |
| 1288 | + register: nm_replace_vlan_static_ports |
| 1289 | + |
| 1290 | +- name: Replace VLAN of existing static port with bulk again |
| 1291 | + cisco.mso.mso_schema_site_anp_epg_staticport: |
| 1292 | + <<: *replace_vlan_static_ports |
| 1293 | + static_ports: |
| 1294 | + - leaf: 101 |
| 1295 | + pod: pod-1 |
| 1296 | + path: eth2/9 |
| 1297 | + type: port |
| 1298 | + vlan: 1309 |
| 1299 | + register: nm_replace_vlan_static_ports_again |
| 1300 | + |
| 1301 | +- name: Verify replacing VLAN of existing static port with bulk |
| 1302 | + ansible.builtin.assert: |
| 1303 | + that: |
| 1304 | + - nm_replace_vlan_static_ports is changed |
| 1305 | + - nm_replace_vlan_static_ports.previous.9.path == "topology/pod-1/paths-101/pathep-[eth2/9]" |
| 1306 | + - nm_replace_vlan_static_ports.previous.9.portEncapVlan == 1209 |
| 1307 | + - nm_replace_vlan_static_ports.current.9.path == "topology/pod-1/paths-101/pathep-[eth2/9]" |
| 1308 | + - nm_replace_vlan_static_ports.current.9.portEncapVlan == 1309 |
| 1309 | + - nm_replace_vlan_static_ports_again is not changed |
| 1310 | + - nm_replace_vlan_static_ports_again.previous.9.path == "topology/pod-1/paths-101/pathep-[eth2/9]" |
| 1311 | + - nm_replace_vlan_static_ports_again.previous.9.portEncapVlan == 1309 |
| 1312 | + - nm_replace_vlan_static_ports_again.current.9.path == "topology/pod-1/paths-101/pathep-[eth2/9]" |
| 1313 | + |
1279 | 1314 | # QUERY TESTS FOR BULK
|
1280 | 1315 |
|
1281 | 1316 | - name: Query static ports
|
|
1298 | 1333 | cisco.mso.mso_schema_site_anp_epg_staticport:
|
1299 | 1334 | <<: *static_ports_append
|
1300 | 1335 | static_ports:
|
| 1336 | + - leaf: 101 |
| 1337 | + pod: pod-1 |
| 1338 | + path: eth2/0 |
| 1339 | + type: port |
| 1340 | + vlan: 1200 |
1301 | 1341 | - leaf: 101
|
1302 | 1342 | pod: pod-1
|
1303 | 1343 | path: eth1/40
|
|
1324 | 1364 | - nm_query_static_ports.current.3.path == "topology/pod-1/paths-101/pathep-[eth2/3]"
|
1325 | 1365 | - nm_query_static_ports.current.3.portEncapVlan == 1203
|
1326 | 1366 | - nm_query_static_ports.current.9.path == "topology/pod-1/paths-101/pathep-[eth2/9]"
|
1327 |
| - - nm_query_static_ports.current.9.portEncapVlan == 1209 |
| 1367 | + - nm_query_static_ports.current.9.portEncapVlan == 1309 |
1328 | 1368 | - err_query_static_ports is failed
|
1329 |
| - - err_query_static_ports.msg.0 == "Provided Static Port Path 'topology/pod-1/paths-101/pathep-[eth2/0]' not found" |
1330 |
| - - err_query_static_ports.msg.1 == "Provided Static Port Path 'topology/pod-1/paths-101/pathep-[eth2/1]' not found" |
| 1369 | + - err_query_static_ports.msg.0 == "Provided Static Port Path 'topology/pod-1/paths-101/pathep-[eth1/40]' not found" |
| 1370 | + - err_query_static_ports.msg.1 == "Provided Static Port Path 'topology/pod-1/paths-201/pathep-[eth1/41]' not found" |
1331 | 1371 |
|
1332 | 1372 | # FORCE REMOVE ALL CONTRACTS
|
1333 | 1373 |
|
|
0 commit comments