engine: CanDoAction of Update/AddNetworkCommand

This patch aggregates the if statements in the
canDoAction into a single statement.

Change-Id: Ifcf0f43957eddfd55261832729931579abbc3e8d
Signed-off-by: Muli Salem <msalem@redhat.com>