#NEWLINE# @ RegisterWithArgChecks ( name = 'prefix.delete_local' , req_args = [ ROUTE_DISTINGUISHER , PREFIX ] , opt_args = [ VRF_RF ] ) #NEWLINE# def delete_local( route_dist , prefix , route_family = VRF_RF_IPV4 ) : #NEWLINE# #INDENT# 'Deletes/withdraws *prefix* from VRF identified by *route_dist* and\n    source as network controller.\n    ' #NEWLINE# try : #NEWLINE# #INDENT# tm = CORE_MANAGER . get_core_service ( ) . table_manager #NEWLINE# tm . remove_from_vrf ( e , prefix , route_family ) #NEWLINE# return [ { #NEWLINE# #INDENT# ROUTE_DISTINGUISHER : route_dist , #NEWLINE# PREFIX : prefix , #NEWLINE# VRF_RF : route_family , #NEWLINE# #UNINDENT# } ] #NEWLINE# #UNINDENT# except BgpCoreError as e : #NEWLINE# #INDENT# raise PrefixError ( desc = e )