management.management.commands.trustpointrestore

Management command to restore the Trustpoint container (Nginx TLS + wizard).

Classes

Command

A Django management command to restore the Trustpoint container.

Module Contents

class management.management.commands.trustpointrestore.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: django.core.management.base.BaseCommand

A Django management command to restore the Trustpoint container.

This restores the NGINX TLS certificate and the wizard state. It is unrelated to the restore of a database backup.

help = 'Restores Trustpoint container.'[source]
add_arguments(parser)[source]

Adds command arguments/options.

Parameters:

parser (django.core.management.base.CommandParser)

Return type:

None

handle(**options)[source]

Entrypoint for the command.

Parameters:

options (Any)

Return type:

None

_extract_version_from_dump(dump_path)[source]
Parameters:

dump_path (str)

Return type:

str

restore_trustpoint()[source]

Restore trustpoint (NGINX TLS and wizard state) if DB is there.

Return type:

None