upgrade to mininet 2.0 api