int function ( Origin arg0 , Origin arg1 ) { if ( arg0 . origin ( ) == ORIGINTYPE . IGP ) { return 1 ; } if ( arg1 . origin ( ) == ORIGINTYPE . IGP ) { return - 1 ; } if ( arg0 . origin ( ) == ORIGINTYPE . EGP ) { return 1 ; } else { return - 1 ; } }
compare origin of two objects and returns object with lowest origin value . concode_field_sep Logger log concode_elem_sep Origin obj2Origin concode_elem_sep AsPath obj1Aspath concode_elem_sep Origin obj1Origin concode_elem_sep LocalPref obj1LocPref concode_elem_sep Med obj1Med concode_elem_sep AsPath obj2Aspath concode_elem_sep Med obj2Med concode_elem_sep LocalPref obj2LocPref concode_field_sep int compareLocalPref concode_elem_sep int compare concode_elem_sep void storeAttr concode_elem_sep Integer countASSize concode_elem_sep int comparePeerDetails concode_elem_sep int compareAsPath concode_elem_sep int compareMed