google.cloud.forseti.scanner.scanners.forwarding_rule_scanner module

Scanner for the Forwarding Rules rules engine.

class ForwardingRuleScanner(global_configs, scanner_configs, service_config, model_name, snapshot_timestamp, rules)[source]

Bases: google.cloud.forseti.scanner.scanners.base_scanner.BaseScanner

Pipeline for forwarding rules from dao

_abc_cache = <_weakrefset.WeakSet object>
_abc_negative_cache = <_weakrefset.WeakSet object>
_abc_negative_cache_version = 190
_abc_registry = <_weakrefset.WeakSet object>
_find_violations(forwarding_rules)[source]

Find violations in forwarding rules.

Parameters:forwarding_rules – Forwarding rule to find violations in
static _flatten_violations(violations)[source]

Flatten RuleViolations into a dict for each RuleViolation member.

Parameters:violations (list) – The RuleViolations to flatten.
Yields:dict – Iterator of RuleViolations as a dict per member.
_output_results(all_violations)[source]

Output results.

Parameters:all_violations (list) – All violations
_retrieve()[source]

Runs the data collection.

Returns:forwarding rule list.
Return type:list
run()[source]

Run, the entry point for this scanner.