ifdown: Introduce _UnconfigureNIC() helper method
ifdown: Introduce _UnconfigureNIC() helper method

This method takes a NIC object, creates the proper invironment
and invokes the ifdown script.

It takes an extra boolean argument 'only_local' which is passed
to ifdown script as the second positional argument. It states
if the external script should wipe out every configuration
related to the NIC or should only clean up local thinks, e.g.
during a successful migration, we are going to invoke ifdown
on the source node but we do not want to purge any DDNS
configuration related to the instance's NICs.

Signed-off-by: Dimitris Aragiorgis <8992e927ab55b53c387d13535e46c0dabc9b84a2@gmail.com>
Signed-off-by: Yiannis Tsiouris <471fe235a6f57165a6c832a0b1689a8b8ed2f80e@grnet.gr>

yiannist/ganeti,yiannist/ganeti,yiannist/ganeti