Skip to main content

This NQE addresses the issue of identifying duplicate IP addresses during a migration to EVPN (Ethernet Virtual Private Network). As overlapping IPs can occur during this migration, this custom NQE (Network Query Engine) detects and reports on these duplications. By using a specific command output ("show evpn database state duplicate"), the solution identifies instances of duplicate IPs across the network. The query then generates a report whenever duplicate entries are found, allowing you to quickly identify and resolve IP conflicts, ensuring a smoother and more efficient migration process.

Benefits

  • Accurate IP conflict detection: Automatically identifies duplicate IP addresses during the EVPN migration, reducing the risk of configuration errors and network disruptions.
  • Enhanced troubleshooting: Provides a clear report of overlapping IPs, allowing the customer to quickly pinpoint and address conflicts without extensive manual checks.
  • Smoother migration process: Ensures a more efficient EVPN migration by proactively identifying and resolving IP duplication issues, minimizing downtime and potential connectivity problems.

How it works:

This NQE reports violations whenever there are returned entries in the “show evpn database state duplicate” output.

 

foreach device in network.devices
where device.platform.vendor == Vendor.JUNIPER
let outputs = device.outputs
foreach command in outputs.commands
where command.commandText == "show evpn database state duplicate"
let violation = length(command.response) > 108
select {
violation,
deviceName: device.name,
CommandOutput: command.response,
length: length(command.response)
}

 

Take this NQE a step further with Intent Verifications.

 

Also check out @baher‘s article:

 

Be the first to reply!

Reply