+Delete Router And Router Interfaces With L3VPN
+ [Documentation] Delete Router and Interface to the subnets with L3VPN assciate
+ # Asscoiate router with L3VPN
+ ${devstack_conn_id} = Get ControlNode Connection
+ ${router_id}= Get Router Id ${ROUTERS[0]} ${devstack_conn_id}
+ Associate VPN to Router routerid=${router_id} vpnid=${VPN_INSTANCE_ID[0]}
+ ${resp}= VPN Get L3VPN vpnid=${VPN_INSTANCE_ID[0]}
+ Should Contain ${resp} ${router_id}
+ #Delete Interface
+ : FOR ${INTERFACE} IN @{SUBNETS}
+ \ Remove Interface ${ROUTERS[0]} ${INTERFACE}
+ ${interface_output} = Show Router Interface ${ROUTERS[0]}
+ : FOR ${INTERFACE} IN @{SUBNETS}
+ \ ${subnet_id} = Get Subnet Id ${INTERFACE} ${devstack_conn_id}
+ \ Should Not Contain ${interface_output} ${subnet_id}
+ # Delete Router and Interface to the subnets.
+ Delete Router ${ROUTERS[0]}
+ ${router_output} = List Router
+ Log ${router_output}
+ Should Not Contain ${router_output} ${ROUTERS[0]}
+ ${router_list} = Create List ${ROUTERS[0]}
+ Wait Until Keyword Succeeds 3s 1s Check For Elements Not At URI ${CONFIG_API}/neutron:neutron/routers/ ${router_list}
+ # Verify Router Entry removed from L3VPN
+ ${resp}= VPN Get L3VPN vpnid=${VPN_INSTANCE_ID[0]}
+ Should Not Contain ${resp} ${router_id}
+
+Delete Router With NonExistentRouter Name
+ [Documentation] Delete router with nonExistentRouter name
+ ${devstack_conn_id}= Get ControlNode Connection
+ Switch Connection ${devstack_conn_id}
+ ${output} = Write Commands Until Prompt neutron router-delete nonExistentRouter 30s
+ Close Connection
+ Should Match Regexp ${output} Unable to find router with name or id 'nonExistentRouter'|Unable to find router\\(s\\) with id\\(s\\) 'nonExistentRouter'
+