@RegisterWithArgChecks(name='prefix.delete_local', req_args=[ROUTE_DISTINGUISHER, PREFIX], opt_args=[VRF_RF])
def delete_local(route_dist, prefix, route_family=VRF_RF_IPV4):
 try:
  tm = CORE_MANAGER.get_core_service().table_manager
  tm.update_vrf_table(route_dist, prefix, route_family=route_family, is_withdraw=True)
  return [{ROUTE_DISTINGUISHER: route_dist, PREFIX: prefix, VRF_RF: route_family}]
 except BgpCoreError as e:
  raise PrefixError(desc=e)

@ RegisterWithArgChecks ( name = 'prefix.delete_local' , req_args = [ ROUTE_DISTINGUISHER , PREFIX ] , opt_args = [ VRF_RF ] ) def delete_local ( route_dist , prefix , route_family = VRF_RF_IPV4 ) : try : tm = CORE_MANAGER . get_core_service ( ) . table_manager tm . update_vrf_table ( route_dist , prefix , route_family = route_family , is_withdraw = True ) return [ { ROUTE_DISTINGUISHER : route_dist , PREFIX : prefix , VRF_RF : route_family } ] except BgpCoreError as e : raise PrefixError ( desc = e )
deletes/withdraws *prefix* from vrf identified by *route_dist* and source as network controller .