-
Notifications
You must be signed in to change notification settings - Fork 72
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
Controllers management #93
base: integration-0.8
Are you sure you want to change the base?
Conversation
… in the REST plugin
…hen gathering info of controllers
…e to get the role
List controllers and show controller info should not need
|
And:
I think for consistency (list controllers) should be:
|
Exec with bad parameters dos not send an HTTP 500 error, although it fails to add it:
|
New APIs are not listed in the index (GET to root): |
json_spirit::Object table; | ||
|
||
//Perform security checks | ||
if(!authorised(req,rep)) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra space. Authorisization here is not needed
std::string lsi_name = std::string(grps[1]); | ||
|
||
//Check if LSI exists; | ||
if(!switch_manager::exists_by_name(lsi_name)){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space
- List and show controllers don't require authorized access - Fixed return message after adding a new controller - Capturing exception when parsing the parameters of the new controller in xcli - New APIs listed in the index
Thanks for the comments. Issues fixed. Check it out! |
ACK. But we need to merge the list_controllers into rofl-common, but first bisdn/rofl-common#17 needs to be fixed, since the commit needs to go on top of integration-0.6 as agreed. Holding it. |
This PR adds the features of adding, removing and listing controllers to LSIs trough the REST plugin.
Examples on how to use it can be found in the xcli tool.
In order to use the list feature, the API of rofl-common needs to be extended. You may find an extension in vicalro/rofl-common@3d251d6 (branch
list_controllers
)