CA-137722: Determining gateway and dns appropriately.

If bring_pif_up is called for management interface then passing
that pif to determing gateway function else passing None.