-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Document how to pass CIDRs lists API calls #4035
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
Conversation
|
The integration test reports:
Does that mean the result can be ignored, or is there something I need to look into? |
You can go to travis and restart the particular run, it may pass next time, (due to more cpu?) as it logs less async queries for instance, or logs less host pings. |
DaanHoogland
left a comment
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.
I know this c&p pattern has been applied all over the code, but can you please create a constant with the test and refer that in those description instead of this, please?
the text itself makes perfect sense and would be a great help to users.
|
I can do that, once I figure out where to put this constant. |
|
@onitake good point, i had not thought of that (yet) |
|
Hm... It doesn't look like I can rerun builds on Travis. |
|
@blueorangutan package |
|
@GabrielBrascher a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
GabrielBrascher
left a comment
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.
Code LGTM, simple description changes.
|
Packaging result: ✔centos7 ✔debian. JID-1583 |
|
textual changes only no furhter testing needed. |
Description
This patch adds a sentence to all CIDR_LIST and DEST_CIDR_LIST API parameter and return value annotations that documents how to pass a list of CIDRs.
This is a rarely used feature, but may be necessary for certain scenarios, such as automatic firewall rule generation/matching, VPNs with multiple routed networks, etc.
There may be other cases where the APIs accept lists, but this was out of scope for this PR.
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
I tested what values the API calls createFirewallRule and createLoadBalancerRule accept for the cidrlist parameter, and what is returned in listFirewallRules and listLoadBalancerRules.
Anything besides a single comma is not accepted.
Furthermore, createFirewallRule returns an error because the parameter is deprecated.