How ksator/junos_automation_with_rest_calls works
This repository is a collection of REST-call examples, chiefly for Junos automation, plus a standalone Google Maps geocoding example. The principal workflow is to run a client example, send an authenticated RPC request to a router, then print or inspect its response; configuration examples send changes instead. README also documents curl and Junos REST Explorer usage. The Ansible playbooks are present, but their implementation details are not sampled, so only the documented REST-call capability is represented.
Main entry points: get_software_information_in_json.py Software JSON · get_software_information_in_xml.py Software XML · audit_bgp.py BGP Audit · get_configuration_with_filter.py Filtered Config
Components 15
Junos Python Clients
- Software JSON
junos/get_software_information_in_json.py - Software XML
junos/get_software_information_in_xml.py - BGP Audit
junos/audit_bgp.py - Filtered Config
junos/get_configuration_with_filter.py - Configuration Write
junos/configure.py - Printed Output
Other REST Clients
- Geocoding Client
google_map/google_map_api.py - Coordinates
- Ansible REST Calls
junos
Remote Services
- Junos REST API
- Junos Router
- Google Maps API
Other components
- Operator
- curl User
- REST Explorer User
Connections 23
- Operator → Software JSON: runs
junos/get_software_information_in_json.py - Software JSON → Junos REST API: GETs software
junos/get_software_information_in_json.py - Junos REST API → Junos Router: requests RPC
- Software JSON → Printed Output: prints details
junos/get_software_information_in_json.py - Operator → Software XML: runs
junos/get_software_information_in_xml.py - Software XML → Junos REST API: GETs software
junos/get_software_information_in_xml.py - Software XML → Printed Output: prints response
junos/get_software_information_in_xml.py - Operator → BGP Audit: runs
junos/audit_bgp.py - BGP Audit → Junos REST API: GETs BGP state
junos/audit_bgp.py - BGP Audit → Printed Output: prints peer states
junos/audit_bgp.py - Operator → Filtered Config: runs
junos/get_configuration_with_filter.py - Filtered Config → Junos REST API: POSTs filter
junos/get_configuration_with_filter.py - Filtered Config → Printed Output: prints response
junos/get_configuration_with_filter.py - Operator → Configuration Write: runs
junos/configure.py - Configuration Write → Junos REST API: POSTs configuration
junos/configure.py - Configuration Write → Printed Output: prints status
junos/configure.py - Operator → Geocoding Client: runs
google_map/google_map_api.py - Geocoding Client → Google Maps API: requests geocoding
google_map/google_map_api.py - Geocoding Client → Coordinates: prints coordinates
google_map/google_map_api.py - Operator → Ansible REST Calls: runs examples
README.md - Ansible REST Calls → Junos REST API: makes REST calls
README.md - curl User → Junos REST API: makes REST calls
README.md - REST Explorer User → Junos REST API: tests RPCs
README.md