-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Document cidrlist parameter deprecation #4037
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
|
@onitake can you update this (and maybe make sure the cidr lists are actually ignored and don't throw an exception)? |
|
@onitake conflicts on this PR, please fix. |
|
ping @onitake is this still relevant? |
|
Hi @onitake Can you please resolve conflicts in this PR? |
…reateFirewallRule
|
I combined the documentation strings. Hope that's ok? |
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.
doc only; lgtm
|
@onitake looks good, only one question: if the parameter is deprecated and must not be used why not then remove it? cc. @rhtyd @DaanHoogland |
For backward compatibility reasons for scripts, but you are right @nvazquez. Unknown parameters are ignored, so if we are sure it is completely ignored. I didn't think of that. I'd say let's keep them in like this for a few versions and then remove them. |
api/src/main/java/org/apache/cloudstack/api/command/user/firewall/CreateFirewallRuleCmd.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/apache/cloudstack/api/command/user/firewall/CreatePortForwardingRuleCmd.java
Outdated
Show resolved
Hide resolved
|
Ok thanks @DaanHoogland |
|
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 439 |
|
@blueorangutan test |
|
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
Co-authored-by: dahn <[email protected]>
|
@sureshanaparti @DaanHoogland Woops, thank you. 😅 |
sureshanaparti
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.
changes LGTM
|
@blueorangutan package |
|
@sureshanaparti a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 508 |
|
Trillian test result (tid-1225)
|
|
Merging this based on approvals and test results |
|
@sureshanaparti @DaanHoogland @onitake @onitake could you please create another pr for CreatePortForwardingRuleCmd.java, CreateLoadBalancerRuleCmd.java and CreateIpForwardingRuleCmd.java which cidrlist is deprecated ? |
|
@weizhouapache Couldn't you have said this a few days earlier? This PR has been open for more than a year. 😞 Sure, I can submit another PR that reverts this... But only if it's confirmed that this isn't deprecated. @rhtyd @DaanHoogland ? |
@onitake I found the problem right after this pr is merged... maybe it is unnecessary to revert the pr as it is not an major issue, you can create a PR to (1) revert the change in CreateFirewallRuleCmd.java; (2) change CreateLoadBalancerRuleCmd.java and CreateIpForwardingRuleCmd.java |
|
@onitake |
Description
Amend the description for the cidrlist parameter in CreatePortForwardingRule and CreateFirewallRule to state that it is deprecated and shouldn't be used.
Passing this parameter will always result in an error.
Fixes: #4036
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
See the original bug report for an explanation.