summaryrefslogtreecommitdiff
path: root/neutron/conf
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-04-28 17:36:33 +0000
committerGerrit Code Review <review@openstack.org>2023-04-28 17:36:33 +0000
commit2b16e9c579c01299f9a48d65dc2ac19e2ac34aaf (patch)
tree7fe43e385466b523e8f45c14f5a3d6aa210ae0c3 /neutron/conf
parent1ee0e3858829b260dabda5192ef819708bd034e6 (diff)
parent7dfbdf65a71b7da2865d475cd91988728f734652 (diff)
downloadneutron-2b16e9c579c01299f9a48d65dc2ac19e2ac34aaf.tar.gz
Merge "Add support for localnet_learn_fdb OVN option"
Diffstat (limited to 'neutron/conf')
-rw-r--r--neutron/conf/plugins/ml2/drivers/ovn/ovn_conf.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/neutron/conf/plugins/ml2/drivers/ovn/ovn_conf.py b/neutron/conf/plugins/ml2/drivers/ovn/ovn_conf.py
index be75c405a8..0706477c4f 100644
--- a/neutron/conf/plugins/ml2/drivers/ovn/ovn_conf.py
+++ b/neutron/conf/plugins/ml2/drivers/ovn/ovn_conf.py
@@ -217,6 +217,13 @@ ovn_opts = [
'order to disable the ``stateful-security-group`` API '
'extension as ``allow-stateless`` keyword is only '
'supported by OVN >= 21.06.')),
+ cfg.BoolOpt('localnet_learn_fdb',
+ default=False,
+ help=_('If enabled it will allow localnet ports to learn MAC '
+ 'addresses and store them in FDB SB table. This avoids '
+ 'flooding for traffic towards unknown IPs when port '
+ 'security is disabled. It requires OVN 22.09 or '
+ 'newer.')),
]
@@ -330,3 +337,7 @@ def is_igmp_snooping_enabled():
def is_ovn_dhcp_disabled_for_baremetal():
return cfg.CONF.ovn.disable_ovn_dhcp_for_baremetal_ports
+
+
+def is_learn_fdb_enabled():
+ return cfg.CONF.ovn.localnet_learn_fdb