Add check for dirty bit to headnode_connect_network.
Add check for dirty bit to headnode_connect_network.

henn/hil,kylehogan/haas,kylehogan/hil,CCI-MOC/haas,henn/hil_sahil,SahilTikale/switchHaaS,henn/haas,meng-sun/hil,henn/hil_sahil,kylehogan/hil,henn/hil,lokI8/haas,apoorvemohan/haas,SahilTikale/haas,apoorvemohan/haas,meng-sun/hil