How does OVS agent change port state?

Asked by Ketan Goyal

Hi,

I am trying to implement a service like dhcp server or l3 service where i am creating a port using the l2 core plugins. From what I understand this just creates a logical entry in the database. Right now i can create a port using the ovs interface driver but its status does not change to ACTIVE. How can I change the status of the port to ACTIVE? Plus the port gets wrong Tag when seen by ovs-vsctl show.

In the above procedure I am creating the port entry first using port_create method and then using the OVSInterfaceDriver class I am creating an internal type port.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu neutron Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ketan Goyal (ketgoyal) said :
#1

I got it,
The agent looks for any changes in the ovsdb by using ovsdb-client in a pooling loop. Then if it finds a new entry, it gets the port details from ovsbd as well as the plugin via RPC and checks for the port binding attributes. If the attributes are found and the ofport entry in the ovsdb for the port is valid, it sets the port's tag via ovs-vsclt, allotted to the port's network and updates the port status to ACTIVE via RPC to plugin.

In my implementation, I forgot to bind my port correctly, hence

Can you help with this problem?

Provide an answer of your own, or ask Ketan Goyal for more information if necessary.

To post a message you must log in.