Change the instantion type of a NetworkPort : check validity of the new type of
instantiation and that it is not equal to current ones. Update the NetworkPort and delete
the previous instantiation. It is up to the caller to create the new instantiation !
public switchInstantiationType ( $new_instantiation_type ) : false | ||
$new_instantiation_type | the name of the new instaniation type | |
return | false | on error, true if the previous instantiation is not available (ie.: invalid instantiation type) or the object of the previous instantiation. |