6DefaultThe controller mode is multiple.ViewsOpenFlow instance viewPredefined user rolesnetwork-adminParametersmultiple: Specifies the multiple mode.single: Specifies the single mode.Usage guidelinesIn single mode, the OpenFlow switch connects to only one controller at a time. Whencommunication with the current controller fails, the OpenFlow instance connects to the controllerwith the lowest ID among the rest controllers.In multiple mode, the OpenFlow switch simultaneously connects to all controllers. If one or morecontrollers become invalid or disconnected, the OpenFlow switch continues to exchange messageswith the rest of the controllers.Examples# Set all controllers of OpenFlow instance 1 to operate in single mode. system-view[Sysname] openflow instance 1[Sysname-of-inst-1] controller mode singledatapath-idUse datapath-id to set the datapath ID for an OpenFlow instance.Use undo datapath-id to restore the default.Syntaxdatapath-id idundo datapath-idDefaultThe datapath ID of an OpenFlow instance contains the instance ID and the bridge MAC address ofthe device. The lower 16 bits are the instance ID and the upper 48 bits are the bridge MAC addressof the device.ViewsOpenFlow instance viewPredefined user rolesnetwork-adminParametersid: Specifies the datapath ID for the OpenFlow instance, in the range of 1 to ffffffffffffffff in hexadecimalformat.Examples# Set the datapath ID to 123456 for OpenFlow instance 1. system-view