From 1d729cc586dc9c9ecd18e8eace1a7540168e09fb Mon Sep 17 00:00:00 2001 From: linb Date: Fri, 9 Oct 2015 10:03:36 +0800 Subject: [PATCH] Fix missing nsx v3 layer3 api changes Change-Id: I7b56c37e5418331f20a7b800df678256710e3c51 --- vmware_nsx/nsxlib/v3/router.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vmware_nsx/nsxlib/v3/router.py b/vmware_nsx/nsxlib/v3/router.py index 0d4350709e..dbeef63c6d 100644 --- a/vmware_nsx/nsxlib/v3/router.py +++ b/vmware_nsx/nsxlib/v3/router.py @@ -103,7 +103,8 @@ def remove_router_link_port(tier1_uuid, tier0_uuid): "not found at the backend"), tier1_uuid) return tier1_link_port_id = tier1_link_port['id'] - tier0_link_port_id = tier1_link_port['linked_logical_router_port_id'] + tier0_link_port_id = ( + tier1_link_port['linked_logical_router_port_id'].get('target_id')) nsxlib.delete_logical_router_port(tier1_link_port_id) nsxlib.delete_logical_router_port(tier0_link_port_id)