ofagent: Fix VLAN usage for TYPE_FLAT and TYPE_VLAN

Closes-Bug: 1301144
Change-Id: I3df821fd72471f8bd84366e3b5a1cc7e3489156c