]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
VPNaaS: Cisco fix validation for GW IP
authorPaul Michali <pcm@cisco.com>
Wed, 13 Aug 2014 01:26:27 +0000 (21:26 -0400)
committerPaul Michali <pcm@cisco.com>
Wed, 13 Aug 2014 12:55:55 +0000 (08:55 -0400)
commit7370b3df04a9f5dddb3bddc9bf6f8b1f3c205d72
tree27e6295b7542abdc0aa1ccf2eba5cbb8a51c2072
parent76dd028cdd382099a7e809a86d56970faaa71b55
VPNaaS: Cisco fix validation for GW IP

The validation to check that the router has a GW IP
for the Cisco service driver was trying to directly
get the gw_port information, which is not available, as
the validator only has a dict of the vpn_service info.

Modified validator to get the router object (not a
dict representation), using the vpn_service's router_id
and then check the attributes for the router directly.

Change-Id: I48286cda23d9737ddd90251dc0d1db1c310e7784
Closes-Bug: 1356127
neutron/services/vpn/service_drivers/cisco_validator.py
neutron/tests/unit/services/vpn/service_drivers/test_cisco_ipsec.py