Page tree

Versions Compared

Key

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

...

Code Block
languagetext
hostname R1
!
interface Ethernet1
 description Uplink
 ip address 10.0.0.1/24
  255.255.255.0
 no shutdown
!
interface Ethernet2
 description LAN
 ip address 192.168.1.1/24
  255.255.255.0
 no shutdown
!
interface Loopback0
 description Management Loopback
 ip address 10.255.255.1 255.255.255.255
!
router ospf
 router-id 1.1.1.1
 network 10.0.0.0/24  0.0.0.255 area 0
!

 

Note: The Compliance engine can validate MCP automation outputs in addition to device configurations. To validate an automation output, select Source → Mass Config Push Result on the Compliance preset screen. The same condition types and matching principles described in this article apply when evaluating automation output.

...

Code Block
languagetext
interface Ethernet1
 ip address 10.0.0.1/24 255.255.255.0

Result: Condition successful

...

Code Block
languagetext
 ip address 10.0.0.1/24
 255.255.255.0
interface Ethernet1

Result: Condition failed

...

Code Block
languagetext
interface Ethernet1
 description Uplink
 ip address 10.0.0.1/24 255.255.255.0

Result: Condition successful

...

Code Block
languagetext
interface Ethernet1
 ip address 10.0.0.1/24 255.255.255.0

Result: Condition failed

The source contains the line "description Uplink" between the two input lines. Strict mode therefore fails.

...