...
| Code Block | ||
|---|---|---|
| ||
(?m)^hostname R[0-9]+$ (?m)^router ospf$ |
This checks for a hostname matching R followed by one or more digits and ospf protocol verifies that the device follows the R<number> hostname convention and has OSPF enabled. The two matches can occur anywhere in the configuration and in any orderare independent, so their order does not matter.
Sequential Mode
| Code Block | ||
|---|---|---|
| ||
(?m)^interface Ethernet[0-9]+$
(?m)^ ip address ([0-9]{1,3}\.){3}[0-9]{1,3}/[0-9]+$ |
...