Comment 1 for bug 1727262

Revision history for this message
venkata anil (anil-venkata) wrote :

I want to introduce new l3 agent config options, like
HA_NETWORK_PROVIDER_NETWORK_TYPE=vlan
HA_NETWORK_PROVIDER_PHYSICAL_NETWORK=ovs

then while creating HA network, l3 agent will pass them like below, at [1]

        args = {'network':
                {'name': n_const.HA_NETWORK_NAME % tenant_id,
                 'tenant_id': '',
                 'shared': False,
                 'admin_state_up': True}}

        if conf.HA_NETWORK_PROVIDER_NETWORK_TYPE and conf.HA_NETWORK_PROVIDER_PHYSICAL_NETWORK:
            args['provider:network_type'] = conf.HA_NETWORK_PROVIDER_NETWORK_TYPE
            args['provider:physical_network'] = conf.HA_NETWORK_PROVIDER_PHYSICAL_NETWORK

        self._add_ha_network_settings(args['network'])
        creation = functools.partial(p_utils.create_network,
                                     self._core_plugin, admin_ctx, args)

[1] https://github.com/openstack/neutron/blob/master/neutron/db/l3_hamode_db.py#L224