change networks format from list to dict

Change-Id: I765be481a057824b2705c55da6adfde97da97e15