interface-reconfigure: explicitly rename devices early to match the XenAPI datamodel MAC->device mapping rather than relying on ifup/ifdown to do it.
interface-reconfigure: explicitly rename devices early
to match the XenAPI datamodel MAC->device mapping rather than relying
on ifup/ifdown to do it.

In particular ifdown does not do renaming and if ifup hasn't already
done it (i.e. at start of day when we are just ensuring the device is
down) then it can get into an infinite loop:

- ifdown ethX
   -> oh, that device is actually called ethY
       -> ifdown ethY
           -> oh, that device is actually called ethX
               -> ifdown ethX
                   -> etc

Signed-off-by: Ian Campbell <9be92b3dbbd6611e3e4c9209fb3d04b4919e7cca@citrix.com>

djs55/squeezed,koushikcgit/xcp-rrdd,koushikcgit/xcp-rrdd,johnelse/xcp-rrdd,djs55/xcp-networkd,simonjbeaumont/xcp-rrdd,koushikcgit/xcp-rrdd,djs55/xcp-networkd,djs55/xcp-rrdd,robhoes/squeezed,sharady/xcp-networkd,sharady/xcp-networkd,djs55/xcp-rrdd,simonjbeaumont/xcp-rrdd,koushikcgit/xcp-networkd,johnelse/xcp-rrdd,koushikcgit/xcp-networkd