The Ansible Ciena SAOS collection includes a variety of Ansible content to help automate the management of Ciena SAOS 10.x network appliances.
This collection has been tested against saos-10-09-00-0307-GA
This collection has been tested against following Ansible versions: >=2.12.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.
The Ciena SAOS 10 collection supports network_cli
and netconf
connections.
Name | Description |
---|---|
ciena.saos10.saos10 | Use saos10 cliconf to run command on Ciena saos10 platform |
Name | Description |
---|---|
ciena.saos10.saos10 | Use saos10 netconf plugin to run netconf commands on Ciena saos10 platform |
Name | Description |
---|---|
ciena.saos10.saos10_classifiers | Manage classifiers on Ciena SAOS 10 devices |
ciena.saos10.saos10_command | Run commands on remote devices running Ciena SAOS 10 |
ciena.saos10.saos10_facts | Get facts about saos10 devices. |
ciena.saos10.saos10_fds | Manage Forwarding Domains on Ciena SAOS 10 devices |
ciena.saos10.saos10_fps | Manage Flow Points on Ciena SAOS 10 devices |
ciena.saos10.xml_diff | return diff for a pair of xml inputs |
Install the Ciena SAOS 10 collection with the Ansible Galaxy CLI:
ansible-galaxy collection install ciena.saos10
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: ciena.saos10
This collection includes network resource modules.
You can call modules by their Fully Qualified Collection Namespace (FQCN), such as ciena.saos10.saos10_command
.
The following example task replaces configuration changes in the existing configuration on a Ciena SAOS 10 network device, using the FQCN:
---
- hosts: all
collections:
- ciena.saos10
gather_facts: false
name: Gather facts for ciena device Saos 10
tasks:
- name: get device facts for Saos 10
ciena.saos10.saos10_facts:
gather_subset:
- all
gather_network_resources:
- classifiers
connection: netconf
- name: saos10_command with diag shell
ciena.saos10.saos10_command:
commands:
- software show
- diag shell host
- ls /
connection: network_cli
- name: Set port config
ciena.saos10.saos10_command:
commands:
- config
- oc-if:interfaces interface 2 config name 2 description myport
- exit
We welcome community contributions to this collection. If you find problems, please open an issue or create a PR against the Ciena SAOS 10 collection repository.
Release is done automatically using Github Actions as part of merging to master.
The modules in this project were built using the resource module builder hosted by Ciena.
See LICENSE to see the full text.