This will fix the issue of KeyError being thrown when
'password' is not supplied while updating bgp peer.
The dict get() method is used to return None when
'password' key is not available.
Two unit tests are also added which will test the cases
1) Exception thrown if the auth type is 'none', and a
password is supplied when updating
2) When the password is not supplied
Reviewed: https:/ /review. openstack. org/367460 /git.openstack. org/cgit/ openstack/ neutron- dynamic- routing/ commit/ ?id=89ed530fecf 4b41aa331c75944 96d2a048f4d682
Committed: https:/
Submitter: Jenkins
Branch: master
commit 89ed530fecf4b41 aa331c7594496d2 a048f4d682
Author: Sreekumar S <email address hidden>
Date: Thu Sep 8 20:44:42 2016 +0530
Fixes KeyError while updating bgp peer
This will fix the issue of KeyError being thrown when
'password' is not supplied while updating bgp peer.
The dict get() method is used to return None when
'password' key is not available.
Two unit tests are also added which will test the cases
1) Exception thrown if the auth type is 'none', and a
password is supplied when updating
2) When the password is not supplied
Change-Id: Ief9e88ca12b04e b08b0cc4e60f9d8 83f1e282ae9
Closes-Bug: #1616066