Skip to content

ansible-collections/junipernetworks.junos

Juniper Networks Junos Collection

CI Codecov CI

The Ansible Juniper Networks Junos collection includes a variety of Ansible content to help automate the management of Juniper Networks Junos network appliances.

This collection has been tested against Juniper Networks Junos OS 18.4R1.

Support

As a Red Hat Ansible Certified Content, this collection is entitled to support through Ansible Automation Platform (AAP).

If a support case cannot be opened with Red Hat and the collection has been obtained either from Galaxy or GitHub, there is community support available at no charge.

You can join us on #network:ansible.com room or the Ansible Forum Network Working Group.

For more information you can check the communication section below.

Communication

For more information about communication, see the Ansible communication guide.

Ansible version compatibility

This collection has been tested against following Ansible versions: >=2.15.0.

For collections that support Ansible 2.9, please ensure you update your network_os to use the fully qualified collection name (for example, cisco.ios.ios). Plugins and modules within a collection may be tested with only specific Ansible versions. A collection may contain metadata that identifies these versions. PEP440 is the schema used to describe the versions of Ansible.

Supported connections

The Juniper Networks Junos collection supports network_cli and netconf connections.

Included content

Cliconf plugins

Name Description
junipernetworks.junos.junos Use junos cliconf to run command on Juniper Junos OS platform

Netconf plugins

Name Description
junipernetworks.junos.junos Use junos netconf plugin to run netconf commands on Juniper JUNOS platform

Modules

Name Description
junipernetworks.junos.junos_acl_interfaces ACL interfaces resource module
junipernetworks.junos.junos_acls ACLs resource module
junipernetworks.junos.junos_banner Manage multiline banners on Juniper JUNOS devices
junipernetworks.junos.junos_bgp_address_family Manage BGP Address Family attributes of interfaces on Junos devices.
junipernetworks.junos.junos_bgp_global Manages BGP Global configuration on devices running Juniper JUNOS.
junipernetworks.junos.junos_command Run arbitrary commands on an Juniper JUNOS device
junipernetworks.junos.junos_config Manage configuration on devices running Juniper JUNOS
junipernetworks.junos.junos_facts Collect facts from remote devices running Juniper Junos
junipernetworks.junos.junos_hostname Manage Hostname server configuration on Junos devices.
junipernetworks.junos.junos_interfaces Junos Interfaces resource module
junipernetworks.junos.junos_l2_interfaces L2 interfaces resource module
junipernetworks.junos.junos_l3_interfaces L3 interfaces resource module
junipernetworks.junos.junos_lacp Global Link Aggregation Control Protocol (LACP) Junos resource module
junipernetworks.junos.junos_lacp_interfaces LACP interfaces resource module
junipernetworks.junos.junos_lag_interfaces Link Aggregation Juniper JUNOS resource module
junipernetworks.junos.junos_lldp_global LLDP resource module
junipernetworks.junos.junos_lldp_interfaces LLDP interfaces resource module
junipernetworks.junos.junos_logging_global Manage logging configuration on Junos devices.
junipernetworks.junos.junos_netconf Configures the Junos Netconf system service
junipernetworks.junos.junos_ntp_global Manage NTP configuration on Junos devices.
junipernetworks.junos.junos_ospf_interfaces OSPF Interfaces Resource Module.
junipernetworks.junos.junos_ospfv2 OSPFv2 resource module
junipernetworks.junos.junos_ospfv3 OSPFv3 resource module
junipernetworks.junos.junos_package Installs packages on remote devices running Junos
junipernetworks.junos.junos_ping Tests reachability using ping from devices running Juniper JUNOS
junipernetworks.junos.junos_prefix_lists Manage prefix-lists attributes of interfaces on Junos devices.
junipernetworks.junos.junos_routing_instances Manage routing instances on Junos devices.
junipernetworks.junos.junos_routing_options Manage routing-options configuration on Junos devices.
junipernetworks.junos.junos_rpc Runs an arbitrary RPC over NetConf on an Juniper JUNOS device
junipernetworks.junos.junos_scp Transfer files from or to remote devices running Junos
junipernetworks.junos.junos_security_policies Create and manage security policies on Juniper JUNOS devices
junipernetworks.junos.junos_security_policies_global Manage global security policy settings on Juniper JUNOS devices
junipernetworks.junos.junos_security_zones Manage security zones on Juniper JUNOS devices
junipernetworks.junos.junos_snmp_server Manage SNMP server configuration on Junos devices.
junipernetworks.junos.junos_static_routes Static routes resource module
junipernetworks.junos.junos_system Manage the system attributes on Juniper JUNOS devices
junipernetworks.junos.junos_user Manage local user accounts on Juniper JUNOS devices
junipernetworks.junos.junos_vlans VLANs resource module
junipernetworks.junos.junos_vrf Manage the VRF definitions on Juniper JUNOS devices

Click the Content button to see the list of content included in this collection.

Installing this collection

You can install the Juniper Networks Junos collection with the Ansible Galaxy CLI:

ansible-galaxy collection install junipernetworks.junos

You can also include it in a requirements.yml file and install it with ansible-galaxy collection install -r requirements.yml, using the format:

---
collections:
  - name: junipernetworks.junos

Using this collection

You can call modules by their Fully Qualified Collection Namespace (FQCN), such as junipernetworks.junos.junos_l2_interfaces. The following example task replaces configuration changes in the existing configuration on a Juniper Networks Junos network device, using the FQCN:

---
- name: "Replace provided configuration with device configuration"
  junipernetworks.junos.junos_l2_interfaces:
    config:
      - name: ge-0/0/3
        access:
          vlan: v101
      - name: ge-0/0/4
        trunk:
          allowed_vlans:
            - vlan30
          native_vlan: 50
    state: replaced

See Also:

Contributing to this collection

We welcome community contributions to this collection. If you find problems, please open an issue or create a PR against the Juniper Networks Junos collection repository. See Contributing to Ansible-maintained collections for complete details.

You can also join us on:

See the Ansible Community Guide for details on contributing to Ansible.

Code of Conduct

This collection follows the Ansible project's Code of Conduct. Please read and familiarize yourself with this document.

Release notes

Release notes are available here.

Roadmap

More information

Licensing

GNU General Public License v3.0 or later.

See LICENSE to see the full text.