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

Vpnaas: List IPSec Policies #772

Merged
merged 6 commits into from
Feb 28, 2018

Conversation

simonre
Copy link
Contributor

@simonre simonre commented Feb 19, 2018

For #723

Links to the line numbers/files in the OpenStack source code that support the
code in this PR:

https://github.com/openstack/neutron-vpnaas/blob/058469e1b99b647537a5228c6a384d93df5484df/neutron_vpnaas/db/vpn/vpn_db.py#L454

@coveralls
Copy link

coveralls commented Feb 19, 2018

Coverage Status

Coverage increased (+0.04%) to 73.596% when pulling 7759257 on simonre:vpnaas-ipsecpolicy-list into eedbafa on gophercloud:master.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 19, 2018

Build succeeded.

Copy link
Contributor

@jtopjian jtopjian left a comment

Choose a reason for hiding this comment

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

@simonre I did a cursory scan of this PR and left a few comments. Let me know if you have any questions.

This looks good, but I'll do a more closer review when it has been rebased and such.

// the API. Filtering is achieved by passing in struct field values that map to
// the IPSec policy attributes you want to see returned.
type ListOpts struct {
ID string `q:"id"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment here as with the Services ListOpts.

EncapsulationMode string `q:"encapsulation_mode"`
EncryptionAlgorithm string `q:"encryption_algorithm"`
PFS string `q:"pfs"`
Lifetime Lifetime `q:"lifetime"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this actually possible to query with?

"encapsulation_mode": "tunnel",
"encryption_algorithm": "aes-128",
"pfs": "group5",
"project_id": "b4eedccc6fb74fa8a7ad6b08382b852b",
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as with the Services List PR. If both ProjectID and TenantID are being returned, let's make sure both are in the results struct.

@simonre simonre changed the title [WIP] [PENDING #768] Vpnaas: List IPSec Policies [WIP] Vpnaas: List IPSec Policies Feb 27, 2018
@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 27, 2018

Build succeeded.

@simonre simonre changed the title [WIP] Vpnaas: List IPSec Policies Vpnaas: List IPSec Policies Feb 27, 2018
@simonre
Copy link
Contributor Author

simonre commented Feb 27, 2018

@jtopjian This is ready for review

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 27, 2018

Build succeeded.

@jtopjian
Copy link
Contributor

@simonre This looks good! Nice work on the list implementation.

There are some nits in the doc.go file. I'm going to merge this and then do a quick commit to fix these + the other one I mentioned, so make sure to pull that commit from master when you continue working on your other PRs.

@jtopjian jtopjian merged commit 3ffde9a into gophercloud:master Feb 28, 2018
cardoe pushed a commit to cardoe/gophercloud that referenced this pull request Aug 27, 2020
This commit removes the flatmap package from tests since it has been
deprecated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants