How Openstack is adding tap in OVS when mechanism driver is ODL.

asked 2016-06-15 06:51:42 -0600

Devesh gravatar image

Hi, I want to know who is add tap of spawned instance in br-int when mechanism driver is Opendaylight , neutron-openvswitch-agent has also been stopped. It will be very good if you can guide me where is the corresponding code in openstack/opendaylight.

Thanks Devesh

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-06-15 09:54:54 -0600

darragh-oreilly gravatar image

nova-compute creates the tap. It communicates with the neutron api to create the logical port, and uses the details it gets back.

edit flag offensive delete link more

answered 2016-06-16 23:15:34 -0600

Devesh gravatar image

Hi Oreily,

Thank for your response, Can you please guide me what part of the code. Actually I want to change the type of the port , So I have changed in file nova/network/ on function

def _create_ovs_vif_cmd(bridge, dev, iface_id, mac, instance_id, interface_type=None): cmd = ['--', '--if-exists', 'del-port', dev, '--', 'add-port', bridge, dev, '--', 'set', 'Interface', dev,"type=fpaphy" 'external-ids:iface-id=%s' % iface_id, 'external-ids:iface-status=active', 'external-ids:attached-mac=%s' % mac, 'external-ids:vm-uuid=%s' % instance_id] if interface_type: cmd += ['type=%s' % interface_type]

return cmd

but When I create instance this the tap is not being added with fpaphy. It seems from somewhere else port is being added. Please guide me.

Thanks devesh

edit flag offensive delete link more


donno - I'm not vey familiar with that part of the code

darragh-oreilly gravatar imagedarragh-oreilly ( 2016-06-17 04:47:07 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2016-06-15 06:51:42 -0600

Seen: 158 times

Last updated: Jun 16 '16