Skip to content

Instantly share code, notes, and snippets.

View Ruchip16's full-sized avatar
:octocat:
Focusing

Ruchi Pakhle Ruchip16

:octocat:
Focusing
View GitHub Profile
@Ruchip16
Ruchip16 / network_os_error.md
Created August 30, 2025 19:17
fix_network_os_error in junipernetworks.junos.junos collection in ansible-junos-stdlib

Issue: Fix “network os junipernetworks.junos.junos is not supported” error when using ansible_network_os=junipernetworks.junos.junos

Background

With the transfer of Ansible support for Junos devices from the junipernetworks.junos collection to the new juniper.device collection, most modules were redirected using meta/runtime.yml. This ensured backward compatibility for playbooks that still invoked modules from junipernetworks.junos.

Example redirect in meta/runtime.yml:

plugin_routing:
  modules:
#!/usr/bin/env python3
import sys
from pathlib import Path
import pandas as pd
import numpy as np
INPUT_FILE = Path("top_1000_vendors.csv")
OUTPUT_FILE = Path("vendor_stability_mapping2.csv")
CUTOFF_DATE = "2024-06-01"
@Ruchip16
Ruchip16 / vendor_mapping.py
Last active August 27, 2025 14:46
Vendor Mapping file
#!/usr/bin/env python3
import sys
from pathlib import Path
import pandas as pd
import numpy as np
INPUT_FILE = Path("top_1000_vendors_starburst_query_result_ copy.csv")
OUTPUT_FILE = Path("vendor_stability_mapping.csv")
CUTOFF_DATE = "2024-06-01"
@Ruchip16
Ruchip16 / command.yaml
Last active July 27, 2025 19:26
Reproducing Ansible-core 2.19 direct execution bug (ActionBase._parse_returned_data missing profile)
---
- name: Reproduce Ansible-core 2.19 direct-exec error
hosts: ios
gather_facts: false
vars:
ansible_connection: ansible.netcommon.network_cli
ansible_network_os: cisco.ios.ios
ansible_become_method: enable
import_modules: true # triggers direct execution mode
tasks:
@Ruchip16
Ruchip16 / sanity_run.log
Created July 18, 2025 07:57
Logs of successful run for sanity
Running sanity test "action-plugin-docs"
Running sanity test "ansible-doc"
Running sanity test "changelog"
Running sanity test "compile" on Python 3.12
Running sanity test "empty-init"
Running sanity test "ignores"
Running sanity test "import" on Python 3.12
Running sanity test "line-endings"
Running sanity test "no-assert"
Running sanity test "no-get-exception"
@Ruchip16
Ruchip16 / fix_sanity.md
Last active July 18, 2025 07:59
Steps to fix the `ModuleNotFoundError: ansible.netcommon` locally

Fixing ModuleNotFoundError: ansible.netcommon locally and Running Sanity Tests (Python 3.12)

Step 1: Create and activate Python 3.12 virtual environment

cd ~/
mkdir myenv-python312 && cd myenv-python312
pyenv local 3.12.3
python -m venv venvjuno312
source venvjuno312/bin/activate

Network Health Check Validated Content - Automation Overview

Introduction

To streamline network operations and accelerate incident response, we have developed a validated Ansible content collection that automates routine health-checks on network devices. This collection provides modular roles designed to gather critical health information across multiple network platforms (Cisco IOS-XR, IOS-XE, NX-OS, and Arista EOS).

Validated Collection Roles Overview

CPU Health Check

Monitors CPU utilization across devices, ensuring resources are optimized and identifying potential performance bottlenecks proactively.

@Ruchip16
Ruchip16 / ios_vrf_address_family.yaml
Last active April 11, 2024 08:01
2. ios_vrf_global + ios_vrf_address_family
module: ios_vrf_address_family
short_description: Resource module to configure VRF definitions.
description: This module provides declarative management of VRF definitions on Cisco IOS.
version_added: 7.0.0
author: Ruchi Pakhle (@Ruchip16)
notes:
- Tested against Cisco IOSXE version 17.3 on CML.
- This module works with connection C(network_cli).
See U(https://docs.ansible.com/ansible/latest/network/user_guide/platform_ios.html)
options:
@Ruchip16
Ruchip16 / ios_vrf_global.yaml
Last active April 11, 2024 07:51
1. ios_vrf_global without AF configs
module: ios_vrf_global
short_description: Resource module to configure VRF definitions.
description: This module provides declarative management of VRF definitions on Cisco IOS.
version_added: 7.0.0
author: Ruchi Pakhle (@Ruchip16)
notes:
- Tested against Cisco IOSXE version 17.3 on CML.
- This module works with connection C(network_cli).
See U(https://docs.ansible.com/ansible/latest/network/user_guide/platform_ios.html)
options:
@Ruchip16
Ruchip16 / ios_vrf_global.yaml
Last active April 11, 2024 08:05
1. ios_vrf_global which includes AF configs
module: ios_vrf_global
short_description: Resource module to configure VRF definitions.
description: This module provides declarative management of VRF definitions on Cisco IOS.
version_added: 7.0.0
author: Ruchi Pakhle (@Ruchip16)
notes:
- Tested against Cisco IOSXE version 17.3 on CML.
- This module works with connection C(network_cli).
See U(https://docs.ansible.com/ansible/latest/network/user_guide/platform_ios.html)
options: