convert agent.LinkManager to Scala
network extension: keep up with changes on master