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

Floating IP support #455

Merged
merged 2 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions cli/docs/cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,93 @@
"name": "docs",
"about": "Generate CLI docs in JSON format"
},
{
"name": "floating-ip",
"subcommands": [
{
"name": "create",
"about": "Create a Floating IP",
"args": [
{
"long": "address",
"help": "An IP address to reserve for use as a floating IP. This field is optional: when not set, an address will be automatically chosen from `pool`. If set, then the IP must be available in the resolved `pool`."
},
{
"long": "description"
},
{
"long": "json-body",
"help": "Path to a file that contains the full json body."
},
{
"long": "json-body-template",
"help": "XXX"
},
{
"long": "name"
},
{
"long": "pool",
"help": "The parent IP pool that a floating IP is pulled from. If unset, the default pool is selected."
},
{
"long": "project",
"help": "Name or ID of the project"
}
]
},
{
"name": "delete",
"about": "Delete a Floating IP",
"args": [
{
"long": "floating-ip",
"help": "Name or ID of the Floating IP"
},
{
"long": "project",
"help": "Name or ID of the project"
}
]
},
{
"name": "list",
"about": "List all Floating IPs",
"args": [
{
"long": "limit",
"help": "Maximum number of items returned by a single call"
},
{
"long": "project",
"help": "Name or ID of the project"
},
{
"long": "sort-by",
"values": [
"name_ascending",
"name_descending",
"id_ascending"
]
}
]
},
{
"name": "view",
"about": "Fetch a floating IP",
"args": [
{
"long": "floating-ip",
"help": "Name or ID of the Floating IP"
},
{
"long": "project",
"help": "Name or ID of the project"
}
]
}
]
},
{
"name": "group",
"subcommands": [
Expand Down
5 changes: 5 additions & 0 deletions cli/src/cli_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,11 @@ fn xxx<'a>(command: CliCommand) -> Option<&'a str> {
CliCommand::CurrentUserSshKeyView => Some("current-user ssh-key view"),
CliCommand::CurrentUserSshKeyDelete => Some("current-user ssh-key delete"),

CliCommand::FloatingIpView => Some("floating-ip view"),
CliCommand::FloatingIpList => Some("floating-ip list"),
CliCommand::FloatingIpCreate => Some("floating-ip create"),
CliCommand::FloatingIpDelete => Some("floating-ip delete"),

CliCommand::Ping => Some("ping"),

// Commands not yet implemented
Expand Down
Loading
Loading