Do not apply interface config for invalid device type.
Do not apply interface config for invalid device type.

When parent link is not set, device type remains invalid for VMIs in
TOR and GW interfaces. Ignore such interfaces while applying config.

Closes-bug: 1458165
(cherry picked from commit 791439aafdf7f836b9579dcffb1299859826bb66)

Dont update device type to invalid, when interface configuration is deleted

Upon interface config deleting agent was setting device type of a VMI
to invalid, and if the device type is invalid, ip and evpn routes
were not getting deleted. Once device type is determined dont
update the type to invalid. test_intf already catches this case

(cherry picked from commit 304f1ab9bd8f166f55d382d73e28e27e7a8da0b0)

Change-Id: I65bb7db8e657823827ac669ac3d1a518539e3b9a

eonpatapon/contrail-controller,tcpcloud/contrail-controller,facetothefate/contrail-controller,rombie/contrail-controller,facetothefate/contrail-controller,nischalsheth/contrail-controller,rombie/contrail-controller,codilime/contrail-controller,sajuptpm/contrail-controller,facetothefate/contrail-controller,DreamLab/contrail-controller,vmahuli/contrail-controller,vpramo/contrail-controller,vmahuli/contrail-controller,hthompson6/contrail-controller,reiaaoyama/contrail-controller,nischalsheth/contrail-controller,numansiddique/contrail-controller,rombie/contrail-controller,hthompson6/contrail-controller,nischalsheth/contrail-controller,rombie/contrail-controller,vmahuli/contrail-controller,rombie/contrail-controller,numansiddique/contrail-controller,codilime/contrail-controller,rombie/contrail-controller,eonpatapon/contrail-controller,eonpatapon/contrail-controller,numansiddique/contrail-controller,facetothefate/contrail-controller,reiaaoyama/contrail-controller,nischalsheth/contrail-controller,nischalsheth/contrail-controller,sajuptpm/contrail-controller,hthompson6/contrail-controller,sajuptpm/contrail-controller,tcpcloud/contrail-controller,rombie/contrail-controller,hthompson6/contrail-controller,reiaaoyama/contrail-controller,vmahuli/contrail-controller,nischalsheth/contrail-controller,codilime/contrail-controller,codilime/contrail-controller,eonpatapon/contrail-controller,sajuptpm/contrail-controller,DreamLab/contrail-controller,tcpcloud/contrail-controller,tcpcloud/contrail-controller,numansiddique/contrail-controller,DreamLab/contrail-controller,vmahuli/contrail-controller,nischalsheth/contrail-controller,codilime/contrail-controller,eonpatapon/contrail-controller,eonpatapon/contrail-controller,vpramo/contrail-controller,vpramo/contrail-controller,sajuptpm/contrail-controller,tcpcloud/contrail-controller,reiaaoyama/contrail-controller,numansiddique/contrail-controller,codilime/contrail-controller,reiaaoyama/contrail-controller,sajuptpm/contrail-controller,facetothefate/contrail-controller,eonpatapon/contrail-controller,nischalsheth/contrail-controller,vpramo/contrail-controller,DreamLab/contrail-controller,vpramo/contrail-controller,hthompson6/contrail-controller,DreamLab/contrail-controller,tcpcloud/contrail-controller