Skip to content

[octavia] add an ability to filter flavors and flavorprofiles #3192

@kayrus

Description

@kayrus

Octavia API supports flavors and flavorprofiles to be filtered by certain attribute filters. To be honest I couldn't find a place in octavia source code, where it's implemented, but I tested with openstack CLI and it worked like it should.

$ os loadbalancer flavor list -h | grep options: -A6
options:
  -h, --help            show this help message and exit
  --name <name>         List flavors according to their name.
  --flavorprofile <flavor_profile>
                        List flavors according to their flavor profile.
  --enable              List enabled flavors.
  --disable             List disabled flavors.
$ os loadbalancer flavorprofile list -h | grep options: -A4
options:
  -h, --help            show this help message and exit
  --name <name>         List flavor profiles by flavor profile name.
  --provider <provider_name>
                        List flavor profiles according to their provider.

I also double-checked the API request in --debug mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions