In addition to this the code does the following:
1. validates if the port exists on the OVS when a port update event takes
place
2. when a port is created the initial state is set as 'DOWN'. this is
later updated by the agent when it is detected as up