Commit d57e150
Fix return value of empty-MAC guard in metadata agent
The empty-MAC guard in _get_port_ip4_ips_and_ip6_flag returns []
instead of the expected (list, bool) tuple. This would cause a
crash if a port with an empty MAC column were encountered during
datapath provisioning. Fix the return value to ([], False).
Conflicts:
neutron/agent/ovn/metadata/agent.py
Closes-Bug: #2150543
Assisted-By: Claude Opus 4.6
Change-Id: Idc7d789ffe0289bf28fb289456196c307dd4a706
Signed-off-by: Eduardo Olivares <eolivare@redhat.com>
(cherry picked from commit 6f529d9)
(cherry picked from commit bd4fa33)1 parent af55086 commit d57e150
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
642 | | - | |
| 642 | + | |
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
484 | 493 | | |
485 | 494 | | |
486 | 495 | | |
| |||
0 commit comments