config block compliance

Share your Config Push presets or discuss automation in general
Post Reply
dskundric
Posts: 2
Joined: Fri Jun 26, 2026 6:49 am

Fri Jun 26, 2026 6:53 am

hi,

is there a config block comliance feature. For example ... each interface has to have some command configured. So you define BLOCK with start/end command for interface and then seek for these specific command in each block?

br
User avatar
Tomas
Posts: 1342
Joined: Sat Jun 25, 2016 12:33 pm

Fri Jun 26, 2026 10:51 am

Hi,

This is coming in 2.10.0. We are adding "Strict" and "Sequential" matching modes to Compliance rules.

Strict - the block of text in the compliance condition has to be present in the device config exactly as-is
Sequential - each line of the compliance condition has to be present in the device config, in the order that's specified
Presence (current) - each line of the compliance condition just has to be present in the device config somewhere, independent of order

The "Strict" matching mode will do exactly what you are asking for :)
dskundric
Posts: 2
Joined: Fri Jun 26, 2026 6:49 am

Fri Jun 26, 2026 11:04 am

and strict mode will suport something like this

for each interface with ip address there must be no ip proxy-arp command

OR

for each line vty segment there must be transport input ssh command?
Post Reply