Import test code in run_tests.py

Change-Id: Ib0a1235cbe1039261e8f1a0425000e131a868f46
Update method update_node_networks due to api changes

There was allowed_networks list wich is use here but some time
ago the list was removed from api resonse.

Change-Id: Idfd3282f4ad200f031bac384e4677e46ee93f17b
Merge "Import test code in run_tests.py"
Append admin network only once

Change-Id: I60ede2127db50ca945ebc1a2201591e77df5962d