In today’s fast-paced tech environment, the integration of production validation into network Continuous Integration and Continuous Deployment (CI/CD) is becoming increasingly essential. This blog will delve into our recent webinar about how Infrahub and Netpicker work together to streamline this process, enhancing the efficiency and reliability of network automation. This webinar recap follows Jordan Villarreal, from OpsMill, and Otto Coster, with Netpicker, as they explore the core functionalities of both platforms, their unique features, and practical use cases that illustrate their capabilities.
Understanding CI/CD in Network Automation
CI/CD has revolutionized the software development landscape, allowing teams to deliver code changes more frequently and reliably. However, when it comes to network automation, the adoption of these practices often encounters challenges. Network engineers may struggle with integrating CI/CD into their workflows, leading to confusion regarding the tools and processes involved.
This is where InfraHUB and Netpicker come into play. By providing robust solutions that cater specifically to network automation, these platforms address the unique requirements of CI/CD in this domain. (Link to segment in video)
Introducing Infrahub
Key Features of Infrahub
- Vendor Neutrality: Infrahub allows users to avoid being locked into any specific vendor ecosystem.
- Schema Control: Users can define their data models, enabling seamless integration with existing workflows.
- Git-like Actions: Infrahub provides Git-like interactions, allowing users to create branches of their data without needing to adopt Git directly.
- CI Checks: The platform enables users to perform continuous integration checks directly within its environment, enhancing data integrity.
Getting to Know Netpicker
Key Features of Netpicker
- Testing Flexibility: Users can create tests in Python or utilize a UI, accommodating different skill levels.
- Configuration Backup: The platform provides tools for backing up device configurations and show commands.
- Modern Architecture: Netpicker operates on a completely Docker-based architecture, allowing for offline operation.
- API-First Approach: All user actions in the interface are essentially API calls, enabling extensive automation possibilities.
Live Demos: Integrating Infrahub and Netpicker
To illustrate the effectiveness of Infrahub and Netpicker, let’s explore two practical use cases that demonstrate how these platforms can be utilized together to enhance network automation.
 Use Case 1: Comparing Configured Interfaces
In this scenario, Otto sets up a Cisco device to emulate a real network environment. Using Netpicker, we can quickly run commands against this emulated device to compare its configured interfaces with the source of truth defined in Infrahub. The process involves selecting the relevant device in Netpicker and executing a command to fetch the current interface state. This state is then compared against the data stored in Infrahub to ensure consistency and accuracy. (Link to segment in video)Steps Involved:
- Set up the emulated Cisco device in Netpicker.
- Run the command to retrieve the configured interfaces.
- Compare the results with the data in Infrahub.
- Identify any discrepancies and take corrective action as necessary.
Use Case 2: CI/CD Pipeline Integration
The second use case focuses on integrating a Netpicker test into the Infrahub CI/CD pipeline. This allows for automated testing of proposed changes before they are deployed to production. In this example, Otto creates a Git repository within Infrahub, where we define checks and queries using GraphQL. These checks are then used to validate the state of the network against the proposed changes, ensuring that any modifications align with the organization’s standards and compliance requirements. (Link to segment in video)Steps Involved:
- Configure a Git repository in Infrahub.
- Define checks and queries to validate the network state.
- Run tests as part of the CI/CD pipeline to ensure compliance with design rules.
- Receive immediate feedback on the success or failure of the proposed changes.
Conclusion
The integration of Infrahub and Netpicker provides a powerful solution for network engineers looking to enhance their CI/CD processes. By leveraging the strengths of both platforms, teams can achieve greater efficiency, reliability, and visibility in their network automation efforts. (Link to segment in video)
As the tech landscape continues to evolve, embracing tools that facilitate automation and validation will be crucial for organizations aiming to stay ahead. Infrahub and Netpicker not only simplify these processes but also empower engineers to take control of their network environments, ensuring that they can deliver high-quality services consistently.
For further information please visit:
- Netpicker – https://netpicker.io
- OpsMill – https://opsmill.com
- Infrahub – https://github.com/opsmill/infrahub