Sounds good.  There's also a utils_net module where this could go.  Yep, that interface looks fine, though no requirement to put **dargs if it's not needed.