|

[Aruba DevNet Lecture 5] Completing the NetOps Pipeline with Git and CI/CD

⏱️ Estimated reading time: Approx. 6 minutes (6 min read)

So far we have Python과 Ansible, and New Central APIArmed with this, we've conquered the core elements of network automation one by one. However, in a practical environment, simply having a few script files on your personal computer isn't enough to achieve true automation.

Today, the final installment in the series, we'll explore the "big picture" of how code integrates with a company's business strategy (ITSM) and, combined with cutting-edge AI technologies, transforms into a self-evolving network (AIOps).


1. Why ITIL 5 and CI/CD are necessary for network operations.

In an enterprise environment, the most important things are ‘stability‘ and ‘traceability’.
Just as developers manage source code, so too does the infrastructure environment. IaC (Infrastructure as Code)should be managed as follows.

  • Version Control (Git): 3rd lectureUpload the switch VLAN configuration code created in to Git. This provides complete traceability of who changed the network configuration, when, and why. Now, your code becomes both a blueprint and a resume for your network.
  • CI/CD pipeline integration: When the code is modified (committed), GitLab or GitHub ActionsIt automatically checks the grammar and deploys it to the test network first.

2. [Architecture] CI/CD-based network deployment workflow

The overall flow is exactly the same as the software development process.

  1. Plan & Code: An engineer writes code to add a new VLAN in VS Code.
  2. Commit & Push: Push the changed code to your internal Git repository.
  3. Review & Merge: A senior engineer reviews and approves the code.
  4. CI/CD Pipeline Integration: Once the code is merged, GitHub Actions or GitLab CI will take effect.
  5. Deploy (CD): In an isolated environment (Runner) within the pipeline ansible-playbook The command is automatically executed and reflected on the Aruba CX switch.

3. [Practical Example] Automating Ansible Deployments with GitHub Actions

A simple pipeline configuration file that automatically deploys the Ansible playbook written in Lesson 3 through GitHub Actions (.github/workflows/deploy_network.yml) is an example.

YAML
name: Deploy Aruba CX Network Config

This pipeline will only run when code is pushed to the # 'main' branch.
on:
  push:
    branches:
      - main

jobs:
  deploy-to-switches:
    runs-on: ubuntu-latest

    steps:
      # 1. Import the code from the repository into the Runner.
      - name: Checkout Code
        uses: actions/checkout@v3

      # 2. Install the ensemble in the pipeline environment.
      - name: Install Ansible
        run: |
          sudo apt update
          sudo apt install -y ansible

      # 3. Install Ansible Collection for Aruba CX switch control.
      - name: Install Aruba CX Collection
        run: ansible-galaxy collection install arubanetworks.aos_cx

      # 4. Deploy the configuration to the actual switch. (For security, use GitHub Secrets for the password.)
      - name: Run Ansible Playbook
        env:
          ANSIBLE_HOST_KEY_CHECKING: ""False""
        run: |
          ansible-playbook -i inventory.ini vlan_setup.yml \
          -e "ansible_password=${{ secrets.ARUBA_SWITCH_PASSWORD }}""

Once this pipeline is built, you will no longer need to connect directly to the switch. Just modify the code and push.

4. Evangelist Insights: Harmonizing ITIL 5 and NetOps

Introducing CI/CD to your network isn't just a technical fad.
This is the company's ITSM (IT Service Management) 및 ITIL 5 FrameworkIt is strongly combined with .

The core of ITIL 5 ‘Change Enablement’ Think about the process.

A Git "Pull Request" becomes a change approval request, and the process of deploying approved code through CI/CD is itself a complete change control process. What if a failure occurs? Simply pressing the "Revert" button in Git instantly rolls back to the previous network state.

This is the true way to achieve business stability and IT agility at the same time. Automation Ecosystemno see.


Concluding the DevNet series...

Automation doesn't happen overnight.

Just as the small API call tests in Lecture 1 combined to create the massive CI/CD pipeline of Lecture 5 today, I hope you can start with a small script in your own field.

HPE Aruba Networking's powerful APIs and ecosystem will be your unwavering weapon.

Similar Posts

  • [ACSA Training #4] Types of Traffic

    ⏱️ Estimated reading time: Approx. 2 minutes (2 min read) Today, I would like to learn about the types of traffic. Computer communication can be classified into three categories: Unicast, Multicast, and Broadcast. Unicast represents one-to-one communication (1 transmitter – 1 receiver). To give a simple example, let's assume there are several students in a classroom. And the teacher [closes] the classroom door…

  • Automate Operations with AOS-CX NAE Lite

    ⏱️ Estimated read time: Approx. 10 minutes (10 min read) The AOS-CX switch is equipped with a proprietary analytics engine called the Network Analytics Engine (NAE). The NAE is a unique built-in analytics framework used for network assurance and troubleshooting. The NAE Agent is provided by HPE Aruba and is a Python-based tool for monitoring switch resource and protocol status…

  • [ACP-DC Training#7] Deploying Data Center Switches

    ⏱️ Estimated read time: Approx. 16 minutes (16 min read) Deploying data center switches may look similar to installing campus switches, but there are unique aspects specific to data centers. In particular, data center switches often undergo a 'staging' process to prepare their configurations before being brought into the field. Today, we will look at what switch staging is, and two…

  • [Monitoring with Icinga Part 1] Basic Integration with Icinga 2 – SNMP & REST API

    ⏱️ Estimated Reading Time: Approx. 6 minutes (6 min read) 1. Introduction: Infrastructure Monitoring, Why Icinga 2? When operating enterprise networks and infrastructure, Zabbix is by far the most familiar open-source monitoring tool to engineers in Korea. Thanks to its intuitive web GUI, various default templates, and an all-in-one environment consisting of a single package, numerous enterprise…

  • [ACP-DC Training #6] DCI and OOBM

    ⏱️ Estimated reading time: Approx. 7 minutes (7 min read) In the last post, we looked at various data center network designs. We explained the characteristics of each design, along with their advantages and disadvantages, and architectural changes. This time, we will examine Data Center Interconnect (DCI), which connects data centers, and OOBM, which is a management network. Data Center Interconnect (DCI): A technology that connects multiple data centers. Everyone, customers…

  • [ACP-DC Training #12] Virtual Routing and Forwarding (VRF)

    ⏱️ Estimated read time: Approx. 10 minutes (10 min read) Virtual Routing and Forwarding (VRF) is an L3 (Network Layer) isolation technology used to build a Virtual Private Network (VPN). VRF isolates routing tables from other VPNs within the system and allows the use of redundant IP addresses. In other words, VRF allows multiple routing tables within a single router…