Ask Your Question
1

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

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

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
0

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

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
0

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

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/linux_net.py 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

Comments

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

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

Seen: 117 times

Last updated: Jun 16 '16