Restore mock network operations removed by commit d4d8e38897152671a2f99edeab95c3a146a231cf

part of DTACLOUD-470 https://issues.apache.org/jira/browse/DTACLOUD-470