Skip to content

Commit

Permalink
DM: send delete bgp config to mx only if pr is vnc managed
Browse files Browse the repository at this point in the history
Change-Id: I77639ffb511e47794c9c3a98e3d00f98f7b12e1e
Closes-Bug: #1519529
  • Loading branch information
sbalineni committed Jul 12, 2016
1 parent 7571c0f commit d31861f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config/device-manager/device_manager/db.py
Expand Up @@ -150,8 +150,9 @@ def delete(cls, uuid):
if uuid not in cls._dict:
return
obj = cls._dict[uuid]
if obj.is_vnc_managed() and obj.is_conf_sent():
obj.config_manager.delete_bgp_config()
obj._cassandra.delete_pr(uuid)
obj.config_manager.delete_bgp_config()
obj.uve_send(True)
obj.update_single_ref('bgp_router', {})
obj.update_multiple_refs('virtual_network', {})
Expand Down

0 comments on commit d31861f

Please sign in to comment.