netbox_rpki.services

Submodules

Exceptions

ProviderSyncError

Common base class for all non-exit exceptions.

ProviderWriteError

Inappropriate argument value (of correct type).

ASPAReconciliationExecutionError

Inappropriate argument value (of correct type).

RoutingIntentExecutionError

Inappropriate argument value (of correct type).

Functions

sync_provider_account(provider_account, *[, snapshot_name])

apply_roa_change_plan_provider_write(plan, *[, ...])

approve_roa_change_plan(plan, *[, approved_by, ...])

build_roa_change_plan_delta(plan)

preview_roa_change_plan_provider_write(plan, *[, ...])

run_roa_lint(reconciliation_run, *[, change_plan, ...])

simulate_roa_change_plan(plan, *[, run_name])

reconcile_aspa_intents(intent_profile, *[, ...])

run_aspa_reconciliation_pipeline(intent_profile, *[, ...])

create_roa_change_plan(reconciliation_run, *[, name])

derive_roa_intents(profile, *[, trigger_mode, run_name])

reconcile_roa_intents(derivation_run, *[, ...])

run_routing_intent_pipeline(profile, *[, ...])

Package Contents

exception netbox_rpki.services.ProviderSyncError[source]

Bases: Exception

Inheritance diagram of netbox_rpki.services.ProviderSyncError

Common base class for all non-exit exceptions.

netbox_rpki.services.sync_provider_account(provider_account, *, snapshot_name=None)[source]
Parameters:
Return type:

tuple[netbox_rpki.models.ProviderSyncRun, netbox_rpki.models.ProviderSnapshot]

exception netbox_rpki.services.ProviderWriteError[source]

Bases: ValueError

Inheritance diagram of netbox_rpki.services.ProviderWriteError

Inappropriate argument value (of correct type).

netbox_rpki.services.apply_roa_change_plan_provider_write(plan, *, requested_by='')[source]
Parameters:
Return type:

tuple[netbox_rpki.models.ProviderWriteExecution, dict[str, list[dict]]]

netbox_rpki.services.approve_roa_change_plan(plan, *, approved_by='', ticket_reference='', change_reference='', maintenance_window_start=None, maintenance_window_end=None, approval_notes='')[source]
Parameters:
Return type:

netbox_rpki.models.ROAChangePlan

netbox_rpki.services.build_roa_change_plan_delta(plan)[source]
Parameters:

plan (netbox_rpki.models.ROAChangePlan | int)

Return type:

dict[str, list[dict]]

netbox_rpki.services.preview_roa_change_plan_provider_write(plan, *, requested_by='')[source]
Parameters:
Return type:

tuple[netbox_rpki.models.ProviderWriteExecution, dict[str, list[dict]]]

netbox_rpki.services.run_roa_lint(reconciliation_run, *, change_plan=None, run_name=None)[source]
Parameters:
Return type:

netbox_rpki.models.ROALintRun

netbox_rpki.services.simulate_roa_change_plan(plan, *, run_name=None)[source]
Parameters:
Return type:

netbox_rpki.models.ROAValidationSimulationRun

exception netbox_rpki.services.ASPAReconciliationExecutionError[source]

Bases: ValueError

Inheritance diagram of netbox_rpki.services.ASPAReconciliationExecutionError

Inappropriate argument value (of correct type).

netbox_rpki.services.reconcile_aspa_intents(intent_profile, *, comparison_scope=ASPA_COMPARISON_SCOPE_LOCAL, provider_snapshot=None, run_name=None)[source]
Parameters:
  • comparison_scope (str)

  • run_name (str | None)

netbox_rpki.services.run_aspa_reconciliation_pipeline(intent_profile, *, comparison_scope=ASPA_COMPARISON_SCOPE_LOCAL, provider_snapshot=None, run_name=None)[source]
Parameters:
  • comparison_scope (str)

  • run_name (str | None)

exception netbox_rpki.services.RoutingIntentExecutionError[source]

Bases: ValueError

Inheritance diagram of netbox_rpki.services.RoutingIntentExecutionError

Inappropriate argument value (of correct type).

netbox_rpki.services.create_roa_change_plan(reconciliation_run, *, name=None)[source]
Parameters:
Return type:

netbox_rpki.models.ROAChangePlan

netbox_rpki.services.derive_roa_intents(profile, *, trigger_mode=rpki_models.IntentRunTriggerMode.MANUAL, run_name=None)[source]
Parameters:
Return type:

netbox_rpki.models.IntentDerivationRun

netbox_rpki.services.reconcile_roa_intents(derivation_run, *, comparison_scope=rpki_models.ReconciliationComparisonScope.LOCAL_ROA_RECORDS, provider_snapshot=None, run_name=None)[source]
Parameters:
Return type:

netbox_rpki.models.ROAReconciliationRun

netbox_rpki.services.run_routing_intent_pipeline(profile, *, trigger_mode=rpki_models.IntentRunTriggerMode.MANUAL, comparison_scope=rpki_models.ReconciliationComparisonScope.LOCAL_ROA_RECORDS, provider_snapshot=None)[source]
Parameters:
Return type:

tuple[netbox_rpki.models.IntentDerivationRun, netbox_rpki.models.ROAReconciliationRun]