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

Handle IP ranges in the API like in the CLI [specific ci=Group23-VIC-Machine-Service] #6747

Merged
merged 1 commit into from
Nov 14, 2017

Conversation

zjs
Copy link
Member

@zjs zjs commented Nov 10, 2017

The vic-machine CLI allows IP ranges to be expressed in CIDR notation or as simple ranges in some places, but requires that CIDR notation be used in others.

Initially there was a hope of making the API behave more consistently, but that requires changes to underlying logic (some of which is not well covered by existing tests).

For now, be consistent with the CLI.

@zjs zjs added area/api The Vritual Container Host management API component/install kind/debt Problems that increase the cost of other work team/lifecycle labels Nov 10, 2017
@zjs zjs added this to the Sprint 21 Lifecycle milestone Nov 10, 2017
@zjs zjs self-assigned this Nov 10, 2017
@zjs zjs requested review from jzt and mdharamadas1 November 10, 2017 17:51
Copy link
Contributor

@mdharamadas1 mdharamadas1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@zjs zjs changed the title Handle IP ranges in the API like in the CLI Handle IP ranges in the API like in the CLI [specific ci=Group23-VIC-Machine-Service] Nov 10, 2017
@zjs zjs force-pushed the topic/ip-ranges branch 2 times, most recently from b336fa1 to 1854f36 Compare November 13, 2017 18:36
@@ -544,33 +544,25 @@
},
"CIDR": {
"type": "string",
"pattern": "^(([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.?){4}(\/([0-9]|[1-2][0-9]|3[0-2]))?$"
"description": "A range of IP addresses in CIDR notation (like 192.0.2.0/24).",
"pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol

The vic-machine CLI allows IP ranges to be expressed in CIDR notation
or as simple ranges in some places, but requires that CIDR notation be
used in others.

Initially there was a hope of making the API behave more consistently,
but that requires changes to underlying logic (some of which is not
well covered by existing tests).

For now, be consistent with the CLI.
@zjs zjs merged commit 015f0da into vmware:feature/vic-machine-service Nov 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api The Vritual Container Host management API cla-not-required component/install kind/debt Problems that increase the cost of other work team/lifecycle
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants