pabelanger / junos

Ansible Network Collection for Juniper JunOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Juniper Networks Junos Collection

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.

Supported connections

The Juniper Networks Junos collection supports network_cli and netconf connections.

Included content

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
    version: 0.0.3

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

Alternately, you can call modules by their short name if you list the junipernetworks.junos collection in the playbook's collections, as follows:

---
- hosts: junos01
  gather_facts: false
  connection: network_cli

  collections:
    - junipernetworks.junos

  tasks:
    - name: Merge JUNOS vlan
      junos_vlans:
        config:
          - name: vlan-1
            vlan-id: 1
      state: merged

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.

You can also join us on:

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

Changelogs

Roadmap

More information

Licensing

GNU General Public License v3.0 or later.

See LICENSE to see the full text.

About

Ansible Network Collection for Juniper JunOS

License:GNU General Public License v3.0


Languages

Language:Python 100.0%