nautobot / nautobot-app-golden-config

Golden Configuration App for Nautobot.
https://docs.nautobot.com/projects/golden-config/en/latest/
Other
100 stars 56 forks source link

Add filter / targeting to compliancies #45

Open bsmeding opened 3 years ago

bsmeding commented 3 years ago

Environment

Proposed Functionality

At this moment the complancies are based on platform, so all devices from the same platfrom are targeted to the same compliancy ruleset. Add more options to filter the targeting

Use Case

When having several Cisco IOS devices in different parts of the network, they often have other compliancy rules that needed to comply.

For example: For the Access switches (eg device role: 'access') must have TenGig1/1 and TenGig1/2 as uplink with several settings. And all access ports needs to have CDP disabled. But the distribution switches must have CDP/LLDP enables on all interfaces. This is also for security settings etc. And for devices in planned state the compliancy are minimal, disabled state does not have to apply. Also with tags for example skip check fo tag: 'development'

A minimal filter to apply to device_role and device_state will help a lot to differentiate the compliancy rules

itdependsnetworks commented 3 years ago

Makes sense, after 1.0 is released, will re-evaluate.

mzbroch commented 2 years ago

Related to https://github.com/nautobot/nautobot/issues/896 - ComplianceRule should point to multiple Dynamic/Custom groups. This would allow for greater flexibility while defining compliance policies.

This might include:

itdependsnetworks commented 2 years ago

from @mzbroch in #204

Proposed Functionality

Associate ComplianceRules with GoldenConfigSetting instances.

!! This feature is dependent on implementation of #202 !!

Use Case

Improve granularity, tenancy and flexibility in ComplianceRules definitions. Allow for different and multiple ComplianceRule of the same Feature Type per Platform.

Current Solution: Currently ComplianceRule of a given Feature type is associated per Platform. In more complex scenarios, users might have different ComplianceRules associated per Platform (ie. Voice routers having different AAA configuration than VPN routers)

Solution Proposal:

Migration Path

itdependsnetworks commented 2 years ago

Will need to review design before implementation