...
| Code Block | ||
|---|---|---|
| ||
(?m)^router ospf$ (?m)^hostname R[0-9]+$ |
Result: Condition successful
This verifies that the device follows the R<number> hostname convention and has OSPF enabled. The two matches are independent, so their order does not matter.
...
| Code Block | ||
|---|---|---|
| ||
(?m)^router ospf$ (?m)^ network [0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/([0-9]+) area [0-9]+$ |
Result: Condition successful
This verifies that an OSPF configuration section is followed by an OSPF network statement. Other OSPF configuration, such as a router-id, may appear between the matches.
...
| Code Block | ||
|---|---|---|
| ||
(?m)^interface Loopback[0-9]+$ (?m)^ description Management Loopback$ (?m)^ ip address 10\.255\.255\.[0-9]+ 255\.255\.255\.255$ |
Result: Condition successful
This verifies that a Loopback interface with a variable interface number has the required "Management Loopback" description and uses a /32 address from the 10.255.255.0/24 management subnet.
...