Inserted path computation logic in Gateway/HEH