Junos OS API and Scripting
-
Scapy Python library support (MX204, MX240, MX304, MX480, MX960, MX2008, MX2010, MX2020, MX10003, MX10004, and MX10008)—Starting in Junos OS Release 24.2R1, Junos OS supports a limited version of the Scapy Python library. Scapy is an interactive packet manipulation library that enables you to create, send, receive, and dissect network packets. You can use Scapy to gather information or troubleshoot issues in your network.
[See Overview of Python Modules on Devices Running Junos OS.]