From 40efda3ca0a69150bbc7b66208f0b8aecd2167ed Mon Sep 17 00:00:00 2001 From: sreinkemeier Date: Mon, 19 Feb 2018 13:52:20 +0100 Subject: [PATCH] Added missing 'id' field to results struct, fixed typo in comment to TransformProtocol --- .../networking/v2/extensions/vpnaas/ipsecpolicies/results.go | 5 ++++- .../extensions/vpnaas/ipsecpolicies/testing/requests_test.go | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/openstack/networking/v2/extensions/vpnaas/ipsecpolicies/results.go b/openstack/networking/v2/extensions/vpnaas/ipsecpolicies/results.go index 789a4e9022..278c0b1560 100644 --- a/openstack/networking/v2/extensions/vpnaas/ipsecpolicies/results.go +++ b/openstack/networking/v2/extensions/vpnaas/ipsecpolicies/results.go @@ -27,11 +27,14 @@ type Policy struct { // PFS is the Perfect forward secrecy (PFS) mode PFS string `json:"pfs"` - // TranformProtocol is the transform protocol + // TransformProtocol is the transform protocol TransformProtocol string `json:"transform_protocol"` // Lifetime is the lifetime of the security association Lifetime Lifetime `json:"lifetime"` + + // ID is the ID of the policy + ID string `json:"id"` } type Lifetime struct { diff --git a/openstack/networking/v2/extensions/vpnaas/ipsecpolicies/testing/requests_test.go b/openstack/networking/v2/extensions/vpnaas/ipsecpolicies/testing/requests_test.go index 6cb870ee00..715e1d8f9d 100644 --- a/openstack/networking/v2/extensions/vpnaas/ipsecpolicies/testing/requests_test.go +++ b/openstack/networking/v2/extensions/vpnaas/ipsecpolicies/testing/requests_test.go @@ -91,6 +91,7 @@ func TestCreate(t *testing.T) { PFS: "group5", Description: "", Lifetime: expectedLifetime, + ID: "5291b189-fd84-46e5-84bd-78f40c05d69c", } th.AssertDeepEquals(t, expected, *actual) }