var bgp = JSON.parse(value);

var result = bgp.bgp_rib.map(function (rib) {
  return {
	'{#BGP_RIB_NAME}': rib['name'],
	'{#BGP_ROUTER_NAME}': rib['router_name'],
	'{#BGP_PEER_REMOTE_ADDR}': rib['peer_address'],
	'{#BGP_PEER_REMOTE_AS}': rib['peer_as']
  };
});

return JSON.stringify(result);