@@ -1250,7 +1250,7 @@ def _get_nets_and_ipv6_ra_confs_for_router_port(self, context, port):
1250
1250
# leak the RAs generated for the tenant networks via the
1251
1251
# provider network
1252
1252
ipv6_ra_configs ['send_periodic' ] = 'true'
1253
- if is_gw_port and utils .is_provider_network (net ):
1253
+ if is_gw_port and utils .is_external_network (net ):
1254
1254
ipv6_ra_configs ['send_periodic' ] = 'false'
1255
1255
ipv6_ra_configs ['mtu' ] = str (net ['mtu' ])
1256
1256
@@ -1562,9 +1562,12 @@ def _gen_router_port_options(self, port, network=None):
1562
1562
# logical router port is centralized in the chassis hosting the
1563
1563
# distributed gateway port.
1564
1564
# https://github.com/openvswitch/ovs/commit/85706c34d53d4810f54bec1de662392a3c06a996
1565
+ # FIXME(ltomasbo): Once Bugzilla 2162756 is fixed the
1566
+ # is_provider_network check should be removed
1565
1567
if network .get (pnet .NETWORK_TYPE ) == const .TYPE_VLAN :
1566
1568
options [ovn_const .LRP_OPTIONS_RESIDE_REDIR_CH ] = (
1567
- 'false' if ovn_conf .is_ovn_distributed_floating_ip ()
1569
+ 'false' if (ovn_conf .is_ovn_distributed_floating_ip () and
1570
+ not utils .is_provider_network (network ))
1568
1571
else 'true' )
1569
1572
1570
1573
is_gw_port = const .DEVICE_OWNER_ROUTER_GW == port .get (
@@ -1979,8 +1982,9 @@ def update_network(self, context, network, original_network=None):
1979
1982
for subnet in subnets :
1980
1983
self .update_subnet (context , subnet , network , txn )
1981
1984
1982
- if utils .is_provider_network (network ):
1983
- # make sure to use admin context as this is a providernet
1985
+ if utils .is_external_network (network ):
1986
+ # make sure to use admin context as this is a external
1987
+ # network
1984
1988
self .set_gateway_mtu (n_context .get_admin_context (),
1985
1989
network , txn )
1986
1990
0 commit comments