topology to netkat