Apply hotfix to work around NVP3.0 RA filter

Fixes DHC-1152
This commit is contained in:
Mark McClain 2013-05-07 13:28:52 -04:00
parent 5f03e9d07f
commit 77f7cb0888

@ -16,6 +16,8 @@
# under the License.
#
import functools
from quantum.common import topics
from quantum.db import l3_db
from quantum.db import l3_rpc_base as l3_rpc
@ -33,6 +35,26 @@ LOG = logging.getLogger("QuantumPlugin")
akanda.monkey_patch_ipv6_generator()
def egress_multicast_hotfix(f):
@functools.wraps(f)
def wrapper(lport_obj, mac_address, fixed_ips, port_security_enabled,
security_profiles, queue_id):
f(lport_obj, mac_address, fixed_ips, port_security_enabled,
security_profiles, queue_id)
# evaulate the state so that we only override the value when enabled
# otherwise we are preserving the underlying behavior of the NVP plugin
if port_security_enabled:
# hotfix to enable egress mulitcast
lport_obj['allow_egress_multicast'] = True
return wrapper
nvp.nvplib._configure_extensions = egress_multicast_hotfix(
nvp.nvplib._configure_extensions
)
class AkandaNvpRpcCallbacks(l3_rpc.L3RpcCallbackMixin, nvp.NVPRpcCallbacks):
pass