Fix public IPs not being removed from the VR when deprovisioned

(cherry picked from commit 23f64a13a85b89518860eb3600ed7652ebbc89ba)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Will Stevens 2017-02-22 13:08:11 -05:00 committed by Rohit Yadav
parent cdc9947d48
commit c206098783

View File

@ -106,6 +106,10 @@ class CsAddress(CsDataBag):
ip.setAddress(address)
logging.info("Address found in DataBag ==> %s" % address)
if not address['add'] and not ip.configured():
logging.info("Skipping %s as the add flag is set to %s " % (address['public_ip'], address['add']))
continue
if ip.configured():
logging.info(
"Address %s on device %s already configured", ip.ip(), dev)