netbox_rpki.services.irr_sync

Attributes

IRR_FAMILY_ORDER

IRRD_GRAPHQL_QUERY

IMPORTED_IRR_MODELS

Exceptions

IrrSyncError

Common base class for all non-exit exceptions.

Classes

ParsedRpslObject

Functions

sync_irr_source(irr_source, *[, fetch_mode, snapshot_file])

build_irr_inventory_batch(irr_source, *, fetch_mode[, ...])

persist_irr_snapshot(snapshot, batch)

Module Contents

netbox_rpki.services.irr_sync.IRR_FAMILY_ORDER = ('route', 'route6', 'route_set', 'route_set_member', 'as_set', 'as_set_member', 'aut_num', 'mntner')[source]
netbox_rpki.services.irr_sync.IRRD_GRAPHQL_QUERY = ''[source]
exception netbox_rpki.services.irr_sync.IrrSyncError[source]

Bases: Exception

Inheritance diagram of netbox_rpki.services.irr_sync.IrrSyncError

Common base class for all non-exit exceptions.

class netbox_rpki.services.irr_sync.ParsedRpslObject[source]
object_class: str[source]
rpsl_pk: str[source]
attributes: dict[str, list[str]][source]
object_text: str[source]
netbox_rpki.services.irr_sync.sync_irr_source(irr_source, *, fetch_mode=rpki_models.IrrFetchMode.LIVE_QUERY, snapshot_file=None)[source]
Parameters:
netbox_rpki.services.irr_sync.build_irr_inventory_batch(irr_source, *, fetch_mode, snapshot_file=None)[source]
Parameters:
Return type:

dict

netbox_rpki.services.irr_sync.persist_irr_snapshot(snapshot, batch)[source]
Parameters:
netbox_rpki.services.irr_sync.IMPORTED_IRR_MODELS[source]