Skip to content

Instantly share code, notes, and snippets.

View NilashishC's full-sized avatar
🎯
Focusing

Nilashish Chakraborty NilashishC

🎯
Focusing
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>APME ↔ ansible-backstage-plugins Interface Analysis</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Red+Hat+Text:wght@400;500;600;700&family=Red+Hat+Display:wght@500;700;800&family=Red+Hat+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>
---
version: 3
images:
base_image:
name: 'registry.redhat.io/ansible-automation-platform/ee-minimal-rhel8:2.18'
dependencies:
galaxy:
collections:
2025-11-14T13:59:57.705694+00:00 INFO 'ansible_navigator.setup_logger' New ansible-navigator instance, logging initialized
2025-11-14T13:59:57.705886+00:00 INFO 'ansible_navigator.setup_logger' New ansible-runner instance, logging initialized
2025-11-14T13:59:57.705920+00:00 DEBUG 'ansible_navigator.main' Flake8-pyproject==1.2.3
2025-11-14T13:59:57.705939+00:00 DEBUG 'ansible_navigator.main' GitPython==3.1.45
2025-11-14T13:59:57.705953+00:00 DEBUG 'ansible_navigator.main' Jinja2==3.1.6
2025-11-14T13:59:57.705967+00:00 DEBUG 'ansible_navigator.main' MarkupSafe==3.0.2
2025-11-14T13:59:57.705979+00:00 DEBUG 'ansible_navigator.main' Parsley==1.3
2025-11-14T13:59:57.705990+00:00 DEBUG 'ansible_navigator.main' PyBindGen==0.22.1
2025-11-14T13:59:57.706002+00:00 DEBUG 'ansible_navigator.main' PyYAML==6.0.2
2025-11-14T13:59:57.706012+00:00 DEBUG 'ansible_navigator.main' Pygments==2.19.2
@NilashishC
NilashishC / mock_http_server.py
Created July 18, 2025 10:37
Mock HTTP server for exponential backoff test
from http.server import BaseHTTPRequestHandler, HTTPServer
import json
HOST = "localhost"
PORT = 8000
class MockServerRequestHandler(BaseHTTPRequestHandler):
REQUEST_COUNTER = 0
(core) ➜ ansible-collections ansible-playbook sftp.yaml -i inventory
PLAY [junos] *******************************************************************
TASK [PUSH TEST FILE TO DEVICE] ************************************************
Friday 20 December 2024 17:44:07 +0530 (0:00:00.030) 0:00:00.030 *******
ok: [10.0.148.231]
PLAY RECAP *********************************************************************
10.0.148.231 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
---
- name: Instruqt AAP Setup
hosts: localhost
become: false
gather_facts: false
collections:
- ansible.controller
vars:
Playbook:
=============
---
- hosts: nxos
gather_facts: true
gather_subset: interfaces
tasks:
- name: Gather interface resource facts
cisco.nxos.nxos_facts:
gather_network_resources: interfaces
Playbook:
=============
---
- hosts: nxos
gather_facts: True
gather_subset: interfaces
module_defaults:
cisco.nxos.nxos_facts:
gather_network_resources: interfaces
.. _nxos_platform_options:
***************************************
NXOS Platform Options
***************************************
The `Cisco NXOS <https://galaxy.ansible.com/ui/repo/published/cisco/nxos>`_ supports multiple connections. This page offers details on how each connection works in Ansible and how to use it.
.. contents::
:local:
# Using overridden
--------------------
Before config:
-----------------
interface fc1/1
switchport description INTF-1
switchport speed 1000
interface fc1/2
switchport description INTF-2