[ML2] l2-pop MD handle multi create/delete ports

If more than one port is added or removed simultaneously, port db entry
have status BUILD or DOWN and pass to ACTIVE when agent have finish to
configured it.
l2-pop mechanism driver use events port pass to ACTIVE or DOWN to send
fdb entries. In case of port is the first or the last network port on
an agent, the flooding entry need to be add or removed.

This patch fix the method to determine how many ports are active on a
agent by adding filter on status port to be ACTIVE.

Closes-bug: #1263881
(cherry picked from commit 7e91362dbb974df5ee44d346e1d0971479510d4b)

Change-Id: Id6d7273376cbb7c31aa058f80eee9dab12ffa900
Merge "[ML2] l2-pop MD handle multi create/delete ports" into stable/havana