Make network operation succeed more often

Now detaching a network succeeds even if it's already detached, and attaching
it succeeds even if it was already attached (whether attached in the same way
or a different way.)

Furthermore, the docstrings are now correct.
TMP REPLACE