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

Improve cluster targeting #5557

merged 12 commits into from Mar 11, 2019


2 participants
Copy link

stgraber commented Mar 11, 2019

This makes sure we consistently have --target available in the CLI for any endpoint where server-specific data makes sense:

  • lxc config {get,set,show,edit,unset}
  • lxc info
  • lxc network info
  • lxc storage info

It also makes it so the network leases API returns a consistent view of the cluster with a location field.

stgraber added some commits Mar 11, 2019

lxc/info: Add targeting to 'lxc info'
Signed-off-by: Stéphane Graber <>
lxd: Fix targeting for /1.0 and /1.0/resources
Signed-off-by: Stéphane Graber <>
lxc/config: Add targeting to 'lxc config'
Signed-off-by: Stéphane Graber <>
lxc/network: Add targeting to 'lxc network info'
Signed-off-by: Stéphane Graber <>
lxc/storage: Add targeting to 'lxc storage info'
Signed-off-by: Stéphane Graber <>
lxd/networks: Allow targeting for state
Signed-off-by: Stéphane Graber <>
api: Add network_leases_location extension
Signed-off-by: Stéphane Graber <>
lxd/containers: Export container location
Signed-off-by: Stéphane Graber <>
shared/api: Add Location to NetworkLeases
Signed-off-by: Stéphane Graber <>
lxd/networks: Aggregate leases within cluster
Signed-off-by: Stéphane Graber <>
lxc/network: Show Location column in list-leases
Signed-off-by: Stéphane Graber <>
i18n: Update translation templates
Signed-off-by: Stéphane Graber <>

@brauner brauner merged commit 5445b41 into lxc:master Mar 11, 2019

4 of 5 checks passed

Testsuite Test started
Branch target Branch target is correct
DCO All commits signed-off
continuous-integration/appveyor/pr AppVeyor build succeeded
continuous-integration/travis-ci/pr The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.