-
Notifications
You must be signed in to change notification settings - Fork 88
feat(server,load-balancer): add --ip-range argument to attach-to-network commands #1164
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
base: main
Are you sure you want to change the base?
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1164 +/- ##
==========================================
+ Coverage 70.33% 70.35% +0.02%
==========================================
Files 245 245
Lines 10772 10782 +10
==========================================
+ Hits 7576 7586 +10
Misses 2509 2509
Partials 687 687
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
cmd.Flags().IP("ip", nil, "IP address to assign to the Load Balancer (auto-assigned if omitted)") | ||
cmd.Flags().IPNet("ip-range", net.IPNet{}, "IP range in CIDR block notation of the subnet to attach to") |
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.
We may want to update both docstrings.
ip-range
would also fit the (auto-assigned if omitted)
case, if ip
is not provided.
In the API you can specify one of them, both, or none.
cmd.Flags().IP("ip", nil, "IP address to assign to the Server (auto-assigned if omitted)") | ||
cmd.Flags().IPNet("ip-range", net.IPNet{}, "IP range in CIDR block notation of the subnet to attach to") |
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.
Same docstring adjustment as for Load Balancers.
A new
ip_range
attribute was introduced into the API (Changelog). This PR implements new arguments to allow setting this property when attaching Servers or Load Balancers to a Network.