nsg-ethz / p4-utils

Extension to Mininet that makes P4 networks easier to build
GNU General Public License v2.0
183 stars 67 forks source link

Problem with switch_thrift_API.py file #64

Open zrabbbit opened 11 months ago

zrabbbit commented 11 months ago

I'm trying to run a project using p4-utils. But when I call SimpleSwitchThriftAPI() in the connect_to_switches() function, I find that I always get an exception error at the load_json_config() function in the thrift_API.py. The connect_to_switches() function like this: def connect_to_switches(self): for p4switch in self.topo.get_p4switches(): thrift_port = self.topo.get_thrift_port(p4switch) self.controllers[p4switch] = SimpleSwitchThriftAPI(thrift_port)