Boundary Type: Indent method
With this straightforward method, a config block is considered ended when the indent level falls to the same indentation level as the starting line of the config block. By default, spaces and tabs are considered indent characters; you may change that by using the indent-chars
attribute. An example of text from a configuration file:
...
vrf definition green
rd 100:1
route-target export 100:1
route-target import 100:1
!
address-family ipv4 exit-address-family
!
vrf definition shared
rd 66:1
!
address-family ipv4
exit-address-family
!
The following ConfigCheckBlock
statement results in the specified statements
being executed once for each vrf-definition
block:
<ConfigBlockCheck boundary-method="indent" block-start="^vrf definition">
statements
</ConfigBlockCheck>
See Configuration Block Check Nesting for another example using this same configuration.