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
This was fixed in master on project
openstack/neutron-dynamic-routing with
change id- Ief9e88ca12b04eb08b0cc4e60f9d883f1e282ae9
Since the bug was originally raised for mitaka, the
original PS mentioned above is being manually
backported here.
Reviewed: https:/ /review. openstack. org/372244 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=788d889b24f 79345990b8bca7e 9a41e6f0e03e42
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 788d889b24f7934 5990b8bca7e9a41 e6f0e03e42
Author: Sreekumar S <email address hidden>
Date: Mon Sep 19 11:45:09 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
This was fixed in master on project neutron- dynamic- routing with b08b0cc4e60f9d8 83f1e282ae9
openstack/
change id- Ief9e88ca12b04e
Since the bug was originally raised for mitaka, the
original PS mentioned above is being manually
backported here.
Change-Id: Ib1f477c6243e5c f92143a21bc86e9 759c9de4803
Closes-Bug: #1616066