Which BGP origin code is preferred?
For otherwise equal BGP paths, the origin attribute is ranked with IGP (internal) preferred over EGP (external), which is preferred over Incomplete.
Community Discussion