Perform operations to check if network has DHCP enabled in elevated
context. In this way info will always be retrieved even if the port
delete operation is performed in a context different than the one
of the network owner.
Also adding unit test to validate the scenario.
Change-Id: I25da68d61afbe85687a040d449869b47e61073d4