cloudvision.compliance package

Subpackages

Submodules

cloudvision.compliance.client module

Synchronous client wrapper for the CloudVision Compliance service.

class cloudvision.compliance.client.ComplianceClient(server, token, cert=None, timeout=120)[source]

Bases: object

Wrapper around the synchronous Compliance gRPC service.

close()[source]

Close the underlying gRPC channel.

config_diff_raw(lhs_config, rhs_config, device_id='', reconcile_all=False, exclude_reconciled_managed_config=False)[source]

Diff two raw configuration strings directly.

get_config(device_id, config_type=1, timestamp=None)[source]

Retrieve the running configuration for a device.

get_config_diff(device_id, timestamp=None, lhs_type=2, rhs_type=1)[source]

Compare two configurations for a device.

get_config_diff_for_task(task_id)[source]

Get the configuration diff for a CloudVision task.

get_config_diff_summary(device_id, timestamp=None, lhs_type=2, rhs_type=1)[source]

Get summary counts for a configuration comparison.

get_config_diff_summary_for_task(task_id)[source]

Get configuration diff summary counts for a task.

get_device_status(device_id, timestamp=None, task_type=0)[source]

Get combined configuration and image compliance status.

get_image_diff(device_id, timestamp=None)[source]

Get the legacy, single-supervisor image diff for a device.

get_image_diff_for_task(task_id)[source]

Get the image diff for a CloudVision task.

get_image_diff_v2(device_id, timestamp=None, lhs_type=2, rhs_type=1)[source]

Compare two image states using structured image information.

get_image_diff_v3(device_id, timestamp=None, a_type=2, b_type=1)[source]

Get the latest image diff with per-supervisor granularity.

get_proposed_config(device_id, configlet_ids)[source]

Generate a proposed configuration from a set of configlets.

Module contents

class cloudvision.compliance.ComplianceClient(server, token, cert=None, timeout=120)[source]

Bases: object

Wrapper around the synchronous Compliance gRPC service.

close()[source]

Close the underlying gRPC channel.

config_diff_raw(lhs_config, rhs_config, device_id='', reconcile_all=False, exclude_reconciled_managed_config=False)[source]

Diff two raw configuration strings directly.

get_config(device_id, config_type=1, timestamp=None)[source]

Retrieve the running configuration for a device.

get_config_diff(device_id, timestamp=None, lhs_type=2, rhs_type=1)[source]

Compare two configurations for a device.

get_config_diff_for_task(task_id)[source]

Get the configuration diff for a CloudVision task.

get_config_diff_summary(device_id, timestamp=None, lhs_type=2, rhs_type=1)[source]

Get summary counts for a configuration comparison.

get_config_diff_summary_for_task(task_id)[source]

Get configuration diff summary counts for a task.

get_device_status(device_id, timestamp=None, task_type=0)[source]

Get combined configuration and image compliance status.

get_image_diff(device_id, timestamp=None)[source]

Get the legacy, single-supervisor image diff for a device.

get_image_diff_for_task(task_id)[source]

Get the image diff for a CloudVision task.

get_image_diff_v2(device_id, timestamp=None, lhs_type=2, rhs_type=1)[source]

Compare two image states using structured image information.

get_image_diff_v3(device_id, timestamp=None, a_type=2, b_type=1)[source]

Get the latest image diff with per-supervisor granularity.

get_proposed_config(device_id, configlet_ids)[source]

Generate a proposed configuration from a set of configlets.