Each Switch object have a field denoted by dpid (datapath_id) that should be sent at FeaturesResponse message by the switch throughout the handshake.
By default, the Switch class generates different dpid according to the switch name. However this dpid is not reflected at FeaturesResponse message sent by linc. What is more, all linc switches send the same dpid (most controllers have no other way to distinguish which switch have sent the OpenFlow messages)!
To verify this behavior, just examine a handshake with 2 switches via Wireshark.
A suggested fix is to take advantage of the "-s" argument to linc_config_gen (already used from some reason with 0) by changing line 944 at node.py from:
configArgs = self.formConfigGenLogicalSwitchIdArg(0)
to:
configArgs = self.formConfigGenLogicalSwitchIdArg(self.dpid) \
Each Switch object have a field denoted by dpid (datapath_id) that should be sent at FeaturesResponse message by the switch throughout the handshake.
By default, the Switch class generates different dpid according to the switch name. However this dpid is not reflected at FeaturesResponse message sent by linc. What is more, all linc switches send the same dpid (most controllers have no other way to distinguish which switch have sent the OpenFlow messages)!
To verify this behavior, just examine a handshake with 2 switches via Wireshark.
A suggested fix is to take advantage of the "-s" argument to linc_config_gen (already used from some reason with 0) by changing line 944 at node.py from:
configArgs = self.formConfigGenLogicalSwitchIdArg(0)
to:
configArgs = self.formConfigGenLogicalSwitchIdArg(self.dpid) \