+openflowplugin-dev On 03/31/2016 03:10 PM, Pramod wrote: > Hi All > > i have to test as how ourswitch (openflow hybrid switch) behaves in > case of multiple controllers. > > the test scenarios cover the specification mentioned under multiple > controllers mentioned in openflow specification > > below are the scenarios.. > > > A controller can request its role to be changed to OFPCR_ROLE_SLAVE. In > this role, the controller > has read-only access to the switch. By default, the controller does not > receive switch asynchronous > messages, apart from Port-status messages. The controller is denied the > ability to execute all > controller-to-switch commands that send packets or modify the state of > the switch. For example, > OFPT_PACKET_OUT, OFPT_FLOW_MOD, OFPT_GROUP_MOD, OFPT_PORT_MOD, > OFPT_TABLE_MOD requests, and > OFPMP_TABLE_FEATURES multiparts requests with a non-empty body must be > rejected. If the controller > sends one of those commands, the switch must reply with an OFPT_ERROR > message with a type eld > of OFPET_BAD_REQUEST, a code eld of OFPBRC_IS_SLAVE. Other > controller-to-switch messages, such as > OFPT_ROLE_REQUEST, OFPT_SET_ASYNC and OFPT_MULTIPART_REQUEST that only > query data, should be > processed normally. > > > A controller can request its role to be changed to OFPCR_ROLE_MASTER. > This role is similar to > OFPCR_ROLE_EQUAL and has full access to the switch, the dierence is that > the switch ensures it is > the only controller in this role. When a controller changes its role to > OFPCR_ROLE_MASTER, the switch > changes all other controllers with the role OFPCR_ROLE_MASTER to have > the role OFPCR_ROLE_SLAVE, but > does not aect controllers with role OFPCR_ROLE_EQUAL. When the switch > performs such role changes, if > a controller role is changed from OFPCR_ROLE_MASTER to OFPCR_ROLE_SLAVE, > the switch must generate a > controller role status event for this controller informing it of its new > state (in many cases that controller > is no longer reachable, and switch may not be able to transmit that event). > > i am using ODL controller version "distribution-karaf-0.2.3-Helium-SR3". > i have installed this on 2 linux machines and configured these machine > ip addresses as openflow controllers in my switch. now both of these > controller roles are shown as "Equal" in my switch. > > now, how to make the controller role from EQUAL to MASTER or SLAVE ? > what is the command / setting that have to be modified > > and also, how to generate the role request from ODL controller to switch > ? i use curl commands to install flows > > https://wiki.opendaylight.org/view/Editing_OpenDaylight_OpenFlow_Plugin:End_to_End_Flows:Example_Flows > > so in the similar lines, is there any way to generate the role request. > Please provide the needed pointers. > > Thanks in advance > > Regards > Pramod > > > _______________________________________________ > controller-dev mailing list > [email protected] > https://lists.opendaylight.org/mailman/listinfo/controller-dev >
signature.asc
Description: OpenPGP digital signature
_______________________________________________ openflowplugin-dev mailing list [email protected] https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev
