Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
(?m)^interface Ethernet[0-9]+$^router ospf$
(?m)^ ipnetwork address ([0-9]{1,3}+\.){3}[0-9]{1,3}/+\.[0-9]+\.[0-9]+/([0-9]+) area [0-9]+$

This verifies that an interface declaration OSPF configuration section is followed later by an IPv4 addressOSPF network statement. Other configuration lines OSPF configuration, such as a router-id, may appear between the two matches.

Strict Mode

Code Block
languagetext
(?m)^interface Ethernet[0-9]+$
(?m)^ description .+$
(?m)^ ip address ([0-9]{1,3}\.){3}[0-9]{1,3}/[0-9]+$

...