MCPcopy Create free account
hub / github.com/SNAS/openbmp / UpdateDB

Method UpdateDB

Server/src/bgp/parseBGP.cpp:349–377  ·  view source on GitHub ↗

* Update the Database with the parsed updated data * * \details This method will update the database based on the supplied parsed update data * * \param parsed_data Reference to the parsed update data */

Source from the content-addressed store, hash-verified

347 * \param parsed_data Reference to the parsed update data
348 */
349void parseBGP::UpdateDB(bgp_msg::UpdateMsg::parsed_update_data &parsed_data) {
350 /*
351 * Update the path attributes
352 */
353 UpdateDBAttrs(parsed_data.attrs);
354
355 /*
356 * Update the bgp-ls data
357 */
358 UpdateDbBgpLs(false, parsed_data.ls, parsed_data.ls_attrs);
359 UpdateDbBgpLs(true, parsed_data.ls_withdrawn, parsed_data.ls_attrs);
360
361 /*
362 * Update the advertised prefixes (both ipv4 and ipv6)
363 */
364 UpdateDBAdvPrefixes(parsed_data.advertised, parsed_data.attrs);
365
366 UpdateDBL3Vpn(false,parsed_data.vpn, parsed_data.attrs);
367 UpdateDBL3Vpn(true,parsed_data.vpn_withdrawn, parsed_data.attrs);
368
369 UpdateDBeVPN(false, parsed_data.evpn, parsed_data.attrs);
370 UpdateDBeVPN(true, parsed_data.evpn_withdrawn, parsed_data.attrs);
371
372 /*
373 * Update withdraws (both ipv4 and ipv6)
374 */
375 UpdateDBWdrawnPrefixes(parsed_data.withdrawn);
376
377}
378
379/**
380 * Update the Database path attributes

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected