Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for HA support #5

Open
wants to merge 5 commits into
base: ha
Choose a base branch
from

Conversation

srijanmishra
Copy link
Member

The pull request has all the changes required for HA support in rfproxy.
The changes include processing of new master election message sent by RFMonitor and inform about the newly elected master to all the devices connected.
Addressed review comments.

To register controller with RFMonitor, send a ControllerRegister message
to RFMonitor. The message has controller listening host, port and role.

Signed-off-by: Srijan Mishra <[email protected]>
A controller was being registered with RFMonitor when ryu app was
initialized. Thus, it was not possible to keep a track on how many
devices a controller is connected to. Now the registration is done when
a device comes up. This helps in keeping exact count of devices to which
a controller is connected to.

Signed-off-by: Srijan Mishra <[email protected]>
RFMonitor informs rfproxy about the new master elected by ELECT_MASTER
message. The message is parsed at rfproxy and all the devices are
informed about the new master.

Signed-off-by: Srijan Mishra <[email protected]>
The controller address is stored on CONF.ofp_listen_host config variable
provided by ryu API. If the parameter is not provided run time then the
controller is listens on localhost and the value of this variable is
uninitialized. So a check is made on init on variable and in case its
empty it is assigned value '127.0.0.1'.

Signed-off-by: Srijan Mishra <[email protected]>
Acked-by: Joe Stringer <[email protected]>
The arguments that were being passed into register_controller function
are available with the class object and the config variable for the
ryu app. The function definition is changed and correct calling of
function where it is being invoked.

Signed-off-by: Srijan Mishra <[email protected]>
Acked-by: Joe Stringer [email protected]
@joestringer joestringer mentioned this pull request Oct 15, 2013
@buptpzw
Copy link

buptpzw commented May 11, 2016

dear author,
I did as the text READ.ME,but importError occured:from rflib.defs import * , No module name rflib.defs.
How can I solve it ?
I'am very appreciated if you can help me.
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants