def _add_faucet_switch(self, sid_prefix, dpid): """Add a FAUCET switch.""" switch_name = 's%s' % sid_prefix return self.addSwitch( name=switch_name, cls=FaucetSwitch, dpid=faucet_mininet_test_util.mininet_dpid(dpid))
def _add_faucet_switch(self, sid_prefix, port, dpid): """Add a FAUCET switch.""" switch_name = 's%s' % sid_prefix return self.addSwitch( name=switch_name, cls=FaucetSwitch, listenPort=port, dpid=faucet_mininet_test_util.mininet_dpid(dpid))