Skip to content

Commit aaf2e56

Browse files
chuliangLudovic Lamarche
authored and
Ludovic Lamarche
committedDec 11, 2023
Add NetworkType and SegmentationID filters when list networks
1 parent 5392bef commit aaf2e56

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed
 

‎openstack/networking/v2/networks/requests.go

+18-16
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,24 @@ type ListOptsBuilder interface {
1919
// by a particular network attribute. SortDir sets the direction, and is either
2020
// `asc' or `desc'. Marker and Limit are used for pagination.
2121
type ListOpts struct {
22-
Status string `q:"status"`
23-
Name string `q:"name"`
24-
Description string `q:"description"`
25-
AdminStateUp *bool `q:"admin_state_up"`
26-
TenantID string `q:"tenant_id"`
27-
ProjectID string `q:"project_id"`
28-
Shared *bool `q:"shared"`
29-
ID string `q:"id"`
30-
Marker string `q:"marker"`
31-
Limit int `q:"limit"`
32-
SortKey string `q:"sort_key"`
33-
SortDir string `q:"sort_dir"`
34-
Tags string `q:"tags"`
35-
TagsAny string `q:"tags-any"`
36-
NotTags string `q:"not-tags"`
37-
NotTagsAny string `q:"not-tags-any"`
22+
Status string `q:"status"`
23+
Name string `q:"name"`
24+
Description string `q:"description"`
25+
AdminStateUp *bool `q:"admin_state_up"`
26+
TenantID string `q:"tenant_id"`
27+
ProjectID string `q:"project_id"`
28+
Shared *bool `q:"shared"`
29+
ID string `q:"id"`
30+
Marker string `q:"marker"`
31+
Limit int `q:"limit"`
32+
SortKey string `q:"sort_key"`
33+
SortDir string `q:"sort_dir"`
34+
Tags string `q:"tags"`
35+
TagsAny string `q:"tags-any"`
36+
NotTags string `q:"not-tags"`
37+
NotTagsAny string `q:"not-tags-any"`
38+
NetworkType string `q:"provider:network_type"`
39+
SegmentationID *int `q:"provider:segmentation_id"`
3840
}
3941

4042
// ToNetworkListQuery formats a ListOpts into a query string.

0 commit comments

Comments
 (0)
Please sign in to comment.