Skip to content

Commit fc5e92d

Browse files
committed
Fix binding l2-only ports by setting connectivity property
As NGS inherits from neutron-lib's api.MechanismDriver, `connectivity` must be overridden, or it will return `portbindings.CONNECTIVITY_LEGACY`, rather than what we want, `CONNECTIVITY_L2`. Fixes-Bug: #2097803 Change-Id: I0c9ba7942d6e7c01f6ca77a49ae8fe447db30baf
1 parent 6711765 commit fc5e92d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

networking_generic_switch/generic_switch_mech.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232

3333
class GenericSwitchDriver(api.MechanismDriver):
3434

35+
@property
36+
def connectivity(self):
37+
return portbindings.CONNECTIVITY_L2
38+
3539
def initialize(self):
3640
"""Perform driver initialization.
3741

0 commit comments

Comments
 (0)