Commit 9aaf333
committed
Fix ngs_allowed_vlans validation
The validation was added in [0] was not covering all cases
as port parameters may be updated when port is actually bound
and they may be propagated via update_port_postcommit function.
Move check added in [0] to _is_link_valid method which is
called in all pleases where we handle ports.
Make bind_port lighweigh and do not call heavy switch functions
as it stated in docstring. All actual work will should be done in
update_port_postcommit.
[0] https://review.opendev.org/c/openstack/networking-generic-switch/+/888047
Change-Id: Ib6e6557fd14621c628fd80158fd4974408ae63dc1 parent b508d0e commit 9aaf333
File tree
2 files changed
+23
-42
lines changed- networking_generic_switch
- tests/unit
2 files changed
+23
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
469 | 473 | | |
470 | 474 | | |
471 | 475 | | |
| |||
477 | 481 | | |
478 | 482 | | |
479 | 483 | | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
| 484 | + | |
518 | 485 | | |
519 | 486 | | |
520 | 487 | | |
| |||
540 | 507 | | |
541 | 508 | | |
542 | 509 | | |
| 510 | + | |
543 | 511 | | |
544 | 512 | | |
545 | 513 | | |
| |||
555 | 523 | | |
556 | 524 | | |
557 | 525 | | |
| 526 | + | |
558 | 527 | | |
559 | 528 | | |
560 | 529 | | |
| |||
563 | 532 | | |
564 | 533 | | |
565 | 534 | | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
566 | 546 | | |
567 | 547 | | |
568 | 548 | | |
| |||
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
904 | 904 | | |
905 | 905 | | |
906 | 906 | | |
907 | | - | |
| 907 | + | |
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
| |||
946 | 946 | | |
947 | 947 | | |
948 | 948 | | |
949 | | - | |
| 949 | + | |
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
| |||
993 | 993 | | |
994 | 994 | | |
995 | 995 | | |
996 | | - | |
| 996 | + | |
997 | 997 | | |
998 | 998 | | |
999 | 999 | | |
| |||
1030 | 1030 | | |
1031 | 1031 | | |
1032 | 1032 | | |
1033 | | - | |
| 1033 | + | |
| 1034 | + | |
1034 | 1035 | | |
1035 | 1036 | | |
1036 | 1037 | | |
| |||
0 commit comments