engine: Extract code common for cluster network attach/update

Validation is very similar in those two commands, so extracted the
common code to a superclass both extend.

Change-Id: I3869fad7c00313626587ba28f867801795061f69
Signed-off-by: Lior Vernia <lvernia@redhat.com>