|
33 | 33 | # a dynamic number of ports. GitHub Issue: Azure/sonic-swss#1384.
|
34 | 34 | NUM_PORTS = 32
|
35 | 35 |
|
36 |
| -# FIXME: Voq asics will have 16 fabric ports created (defined in Azure/sonic-buildimage#6185). |
37 |
| -# Right now, we set FABRIC_NUM_PORTS to 0, and change to 16 when PR#6185 merges. PR#6185 can't |
38 |
| -# be merged before this PR. Otherwise it will cause swss voq test failures. |
| 36 | +# Voq asics will have 16 fabric ports created (defined in Azure/sonic-buildimage#7629). |
39 | 37 | FABRIC_NUM_PORTS = 16
|
40 | 38 |
|
41 | 39 | def ensure_system(cmd):
|
@@ -518,22 +516,12 @@ def _polling_function():
|
518 | 516 |
|
519 | 517 | # Verify that all ports have been created
|
520 | 518 | asic_db = self.get_asic_db()
|
521 |
| - |
522 |
| - # Verify that we have "at least" NUM_PORTS + FABRIC_NUM_PORTS, rather exact number. |
523 |
| - # Right now, FABRIC_NUM_PORTS = 0. So it essentially waits for at least NUM_PORTS. |
524 |
| - # This will allow us to merge Azure/sonic-buildimage#6185 that creates 16 fabric ports. |
525 |
| - # When PR#6185 merges, FABRIC_NUM_PORTS should be 16, and so this verification (at least |
526 |
| - # NUM_PORTS) still holds. |
527 |
| - # Will update FABRIC_NUM_PORTS to 16, and revert back to wait exact NUM_PORTS + FABRIC_NUM_PORTS |
528 |
| - # when PR#6185 merges. |
529 |
| - wait_at_least_n_keys = True |
530 |
| - |
531 |
| - asic_db.wait_for_n_keys("ASIC_STATE:SAI_OBJECT_TYPE_PORT", num_ports + 1, wait_at_least_n_keys) # +1 CPU Port |
| 519 | + asic_db.wait_for_n_keys("ASIC_STATE:SAI_OBJECT_TYPE_PORT", num_ports + 1) # +1 CPU Port |
532 | 520 |
|
533 | 521 | # Verify that fabric ports are monitored in STATE_DB
|
534 | 522 | if metadata.get('switch_type', 'npu') in ['voq', 'fabric']:
|
535 | 523 | self.get_state_db()
|
536 |
| - self.state_db.wait_for_n_keys("FABRIC_PORT_TABLE", FABRIC_NUM_PORTS, wait_at_least_n_keys) |
| 524 | + self.state_db.wait_for_n_keys("FABRIC_PORT_TABLE", FABRIC_NUM_PORTS) |
537 | 525 |
|
538 | 526 | def net_cleanup(self) -> None:
|
539 | 527 | """Clean up network, remove extra links."""
|
|
0 commit comments