Skip to content

Commit

Permalink
Changing namespace from dellemc_networking to dellemc
Browse files Browse the repository at this point in the history
  • Loading branch information
Parameswaran Krishnamurthy committed May 19, 2020
1 parent 2a8c400 commit db8de6a
Show file tree
Hide file tree
Showing 289 changed files with 534 additions and 534 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ device running Dell EMC SmartFabric OS10.
## Collection Installation
Install the latest version of OS10 collection from Ansible Galaxy:

ansible-galaxy collection install dellemc_networking.os10
ansible-galaxy collection install dellemc.os10

To install a specific version, a version range identifier must be specified. For example, to install the most recent version that is greater than or equal to 1.0.0 and less than 2.0.0:

ansible-galaxy collection install 'dellemc_networking.os10:>=1.0.0,<2.0.0'
ansible-galaxy collection install 'dellemc.os10:>=1.0.0,<2.0.0'

## Sample playbook

- hosts: os10_sw1
connection: network_cli
collections:
- dellemc_networking.os10
- dellemc.os10
roles:
- os10_vlan

Expand All @@ -45,7 +45,7 @@ To install a specific version, a version range identifier must be specified. For
# parameters for connection type network_cli
ansible_ssh_user: xxxx
ansible_ssh_pass: xxxx
ansible_network_os: dellemc_networking.os10.os10
ansible_network_os: dellemc.os10.os10

## Sample inventory.yaml

Expand Down
14 changes: 7 additions & 7 deletions galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ authors:
- Shreeja R <[email protected]>
dependencies:
ansible.netcommon: '>=0.0.1'
description: Ansible collections for Dell EMC PowerSwitch platforms running Dell EMC SmartFabric OS10
description: Ansible network collections for Dell EMC PowerSwitch platforms running Dell EMC SmartFabric OS10
license_file: LICENSE
name: os10
namespace: dellemc_networking
namespace: dellemc
readme: README.md
tags: [dell, dellemc, os10, emc, networking]
version: 1.0.2
repository: https://github.com/ansible-collections/dellemc_networking.os10
documentation: https://github.com/ansible-collections/dellemc_networking.os10/tree/master/docs
homepage: https://github.com/ansible-collections/dellemc_networking.os10
issues: https://github.com/ansible-collections/dellemc_networking.os10/issues
version: 0.0.1
repository: https://github.com/ansible-collections/dellemc.os10
documentation: https://github.com/ansible-collections/dellemc.os10/tree/master/docs
homepage: https://github.com/ansible-collections/dellemc.os10
issues: https://github.com/ansible-collections/dellemc.os10/issues
2 changes: 1 addition & 1 deletion playbooks/clos_fabric_ebgp/datacenter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
gather_facts: no
connection: network_cli
collections:
- dellemc_networking.os10
- dellemc.os10
roles:
- os10_interface
- os10_bgp
Expand Down
2 changes: 1 addition & 1 deletion playbooks/clos_fabric_ebgp/group_vars/all
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ansible_ssh_user: xxxxx
ansible_ssh_pass: xxxxx
ansible_network_os: dellemc_networking.os10.os10
ansible_network_os: dellemc.os10.os10

os10_snmp:
snmp_community:
Expand Down
2 changes: 1 addition & 1 deletion playbooks/clos_fabric_ebgp/group_vars/spine.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ansible_ssh_user: xxxxx
ansible_ssh_pass: xxxxx
ansible_network_os: dellemc_networking.os10.os10
ansible_network_os: dellemc.os10.os10

os10_system:
hostname: "{{ spine_hostname }}"
Expand Down
2 changes: 1 addition & 1 deletion playbooks/clos_fabric_ebgp/host_vars/leaf1.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ansible_ssh_user: xxxxx
ansible_ssh_pass: xxxxx
ansible_network_os: dellemc_networking.os10.os10
ansible_network_os: dellemc.os10.os10
leaf_hostname: "leaf-1"
os10_system:
hostname: "{{ leaf_hostname }}"
Expand Down
2 changes: 1 addition & 1 deletion playbooks/clos_fabric_ebgp/host_vars/leaf2.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
hostname: leaf2
ansible_ssh_user: xxxxx
ansible_ssh_pass: xxxxx
ansible_network_os: dellemc_networking.os10.os10
ansible_network_os: dellemc.os10.os10
leaf_hostname: "leaf-2"
os10_system:
hostname: "{{ leaf_hostname }}"
Expand Down
2 changes: 1 addition & 1 deletion playbooks/clos_fabric_ebgp/host_vars/leaf3.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
hostname: leaf3
ansible_ssh_user: xxxxx
ansible_ssh_pass: xxxxx
ansible_network_os: dellemc_networking.os10.os10
ansible_network_os: dellemc.os10.os10
leaf_hostname: "leaf-3"
os10_system:
hostname: "{{ leaf_hostname }}"
Expand Down
2 changes: 1 addition & 1 deletion playbooks/clos_fabric_ebgp/host_vars/leaf4.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
hostname: leaf4
ansible_ssh_user: xxxxx
ansible_ssh_pass: xxxxx
ansible_network_os: dellemc_networking.os10.os10
ansible_network_os: dellemc.os10.os10
leaf_hostname: "leaf-4"
os10_system:
hostname: "{{ leaf_hostname }}"
Expand Down
2 changes: 1 addition & 1 deletion playbooks/clos_fabric_ebgp/host_vars/spine1.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
hostname: spine1
ansible_ssh_user: xxxxx
ansible_ssh_pass: xxxxx
ansible_network_os: dellemc_networking.os10.os10
ansible_network_os: dellemc.os10.os10
spine_hostname: "spine-1"

os10_interface:
Expand Down
2 changes: 1 addition & 1 deletion playbooks/clos_fabric_ebgp/host_vars/spine2.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
hostname: spine2
ansible_ssh_user: xxxxx
ansible_ssh_pass: xxxxx
ansible_network_os: dellemc_networking.os10.os10
ansible_network_os: dellemc.os10.os10
spine_hostname: "spine-2"
os10_interface:
ethernet 1/1/1:
Expand Down
2 changes: 1 addition & 1 deletion playbooks/vxlan_evpn/datacenter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- hosts: datacenter
connection: network_cli
collections:
- dellemc_networking.os10
- dellemc.os10
vars:
build_dir: "/home/administrator/ansible/debug"
roles:
Expand Down
2 changes: 1 addition & 1 deletion playbooks/vxlan_evpn/host_vars/prim-vtep1.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ansible_ssh_user: xxxxx
ansible_ssh_pass: xxxxx
ansible_network_os: dellemc_networking.os10.os10
ansible_network_os: dellemc.os10.os10

os10_system:
hostname: "VLT1-Primary"
Expand Down
2 changes: 1 addition & 1 deletion playbooks/vxlan_evpn/host_vars/prim-vtep2.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ansible_ssh_user: xxxxx
ansible_ssh_pass: xxxxx
ansible_network_os: dellemc_networking.os10.os10
ansible_network_os: dellemc.os10.os10

os10_system:
hostname: "VLT2-Primary"
Expand Down
2 changes: 1 addition & 1 deletion playbooks/vxlan_evpn/host_vars/sec-vtep1.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ansible_ssh_user: xxxxx
ansible_ssh_pass: xxxxx
ansible_network_os: dellemc_networking.os10.os10
ansible_network_os: dellemc.os10.os10

os10_system:
hostname: "VLT1-SEC"
Expand Down
2 changes: 1 addition & 1 deletion playbooks/vxlan_evpn/host_vars/sec-vtep2.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ansible_ssh_user: xxxxx
ansible_ssh_pass: xxxxx
ansible_network_os: dellemc_networking.os10.os10
ansible_network_os: dellemc.os10.os10

os10_system:
hostname: "VLT2-SEC"
Expand Down
2 changes: 1 addition & 1 deletion playbooks/vxlan_evpn/host_vars/spine1.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ansible_ssh_user: xxxxx
ansible_ssh_pass: xxxxx
ansible_network_os: dellemc_networking.os10.os10
ansible_network_os: dellemc.os10.os10

os10_system:
hostname: "spine1"
Expand Down
2 changes: 1 addition & 1 deletion playbooks/vxlan_evpn/host_vars/spine2.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ansible_ssh_user: xxxxx
ansible_ssh_pass: xxxxx
ansible_network_os: dellemc_networking.os10.os10
ansible_network_os: dellemc.os10.os10

os10_system:
hostname: "spine2"
Expand Down
4 changes: 2 additions & 2 deletions plugins/action/os10.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from ansible.module_utils.connection import Connection
from ansible.plugins.action.network import ActionModule as ActionNetworkModule
from ansible.module_utils.network.common.utils import load_provider
from ansible_collections.dellemc_networking.os10.plugins.module_utils.network.os10 import os10_provider_spec
from ansible_collections.dellemc.os10.plugins.module_utils.network.os10 import os10_provider_spec
from ansible.utils.display import Display

display = Display()
Expand All @@ -53,7 +53,7 @@ def run(self, tmp=None, task_vars=None):
provider = load_provider(os10_provider_spec, self._task.args)
pc = copy.deepcopy(self._play_context)
pc.connection = 'network_cli'
pc.network_os = 'dellemc_networking.os10.os10'
pc.network_os = 'dellemc.os10.os10'
pc.remote_addr = provider['host'] or self._play_context.remote_addr
pc.port = int(provider['port'] or self._play_context.port or 22)
pc.remote_user = provider['username'] or self._play_context.connection_user
Expand Down
2 changes: 1 addition & 1 deletion plugins/cliconf/os10.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Cliconf(CliconfBase):
def get_device_info(self):
device_info = {}

device_info['network_os'] = 'dellemc_networking.os10.os10'
device_info['network_os'] = 'dellemc.os10.os10'
reply = self.get('show version')
data = to_text(reply, errors='surrogate_or_strict').strip()

Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/os10_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
before returning or timing out if the condition is not met.
- This module does not support running commands in configuration mode.
Please use M(os10_config) to configure Dell EMC OS10 devices.
extends_documentation_fragment: dellemc_networking.os10.os10
extends_documentation_fragment: dellemc.os10.os10
options:
commands:
description:
Expand Down Expand Up @@ -129,8 +129,8 @@
import time

from ansible.module_utils.basic import AnsibleModule
from ansible_collections.dellemc_networking.os10.plugins.module_utils.network.os10 import run_commands
from ansible_collections.dellemc_networking.os10.plugins.module_utils.network.os10 import os10_argument_spec, check_args
from ansible_collections.dellemc.os10.plugins.module_utils.network.os10 import run_commands
from ansible_collections.dellemc.os10.plugins.module_utils.network.os10 import os10_argument_spec, check_args
from ansible.module_utils.network.common.utils import ComplexList
from ansible.module_utils.network.common.parsing import Conditional
from ansible.module_utils.six import string_types
Expand Down
10 changes: 5 additions & 5 deletions plugins/modules/os10_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
for segmenting configuration into sections. This module provides
an implementation for working with OS10 configuration sections in
a deterministic way.
extends_documentation_fragment: dellemc_networking.os10.os10
extends_documentation_fragment: dellemc.os10.os10
options:
lines:
description:
Expand Down Expand Up @@ -200,10 +200,10 @@
sample: /playbooks/ansible/backup/os10_config.2016-07-16@22:28:34
"""
from ansible.module_utils.basic import AnsibleModule
from ansible_collections.dellemc_networking.os10.plugins.module_utils.network.os10 import get_config, get_sublevel_config
from ansible_collections.dellemc_networking.os10.plugins.module_utils.network.os10 import os10_argument_spec, check_args
from ansible_collections.dellemc_networking.os10.plugins.module_utils.network.os10 import load_config, run_commands
from ansible_collections.dellemc_networking.os10.plugins.module_utils.network.os10 import WARNING_PROMPTS_RE
from ansible_collections.dellemc.os10.plugins.module_utils.network.os10 import get_config, get_sublevel_config
from ansible_collections.dellemc.os10.plugins.module_utils.network.os10 import os10_argument_spec, check_args
from ansible_collections.dellemc.os10.plugins.module_utils.network.os10 import load_config, run_commands
from ansible_collections.dellemc.os10.plugins.module_utils.network.os10 import WARNING_PROMPTS_RE
from ansible.module_utils.network.common.config import NetworkConfig, dumps


Expand Down
6 changes: 3 additions & 3 deletions plugins/modules/os10_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
base network fact keys with C(ansible_net_<fact>). The facts
module will always collect a base set of facts from the device
and can enable or disable collection of additional facts.
extends_documentation_fragment: dellemc_networking.os10.os10
extends_documentation_fragment: dellemc.os10.os10
options:
gather_subset:
description:
Expand Down Expand Up @@ -128,8 +128,8 @@
except ImportError:
import xml.etree.ElementTree as ET

from ansible_collections.dellemc_networking.os10.plugins.module_utils.network.os10 import run_commands
from ansible_collections.dellemc_networking.os10.plugins.module_utils.network.os10 import os10_argument_spec, check_args
from ansible_collections.dellemc.os10.plugins.module_utils.network.os10 import run_commands
from ansible_collections.dellemc.os10.plugins.module_utils.network.os10 import os10_argument_spec, check_args
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.six import iteritems

Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/show_system_network_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
__copyright__ = "(c) 2020 Dell Inc. or its subsidiaries. All rights reserved. Dell, EMC, and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be trademarks of their respective owners."

import re
from ansible_collections.dellemc_networking.os10.plugins.module_utils.network.base_network_show import BaseNetworkShow as BaseNetworkShow
from ansible_collections.dellemc.os10.plugins.module_utils.network.base_network_show import BaseNetworkShow as BaseNetworkShow

DOCUMENTATION = '''
module: show_system_network_summary_ansible_module
Expand Down
6 changes: 3 additions & 3 deletions roles/os10_aaa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This role facilitates the configuration of authentication authorization acccount
Role variables
--------------

- Role is abstracted using the *ansible_network_os* variable that can take dellemc_networking.os10.os10 as value
- Role is abstracted using the *ansible_network_os* variable that can take dellemc.os10.os10 as value
- If *os10_cfg_generate* is set to true, the variable generates the role configuration commands in a file
- Any role variable with a corresponding state variable set to absent negates the configuration of that variable
- Setting an empty value for any variable negates the corresponding configuration
Expand Down Expand Up @@ -89,7 +89,7 @@ When *os10_cfg_generate* is set to true, the variable generates the configuratio
ansible_become_pass: xxxxx
ansible_ssh_user: xxxxx
ansible_ssh_pass: xxxxx
ansible_network_os: dellemc_networking.os10.os10
ansible_network_os: dellemc.os10.os10
build_dir: ../temp/temp_os10

os10_aaa:
Expand Down Expand Up @@ -128,7 +128,7 @@ When *os10_cfg_generate* is set to true, the variable generates the configuratio

- hosts: leaf1
roles:
- dellemc_networking.os10.os10_aaa
- dellemc.os10.os10_aaa

**Run**

Expand Down
2 changes: 1 addition & 1 deletion roles/os10_aaa/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# defaults file for dellemc_networking.os10.os10_aaa
# defaults file for dellemc.os10.os10_aaa
attribute_type:
mandatory: mandatory
on_for_login_auth: on-for-login-auth
Expand Down
2 changes: 1 addition & 1 deletion roles/os10_aaa/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
# handlers file for dellemc_networking.os10.os10_aaa
# handlers file for dellemc.os10.os10_aaa
2 changes: 1 addition & 1 deletion roles/os10_aaa/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
# tasks file for dellemc_networking.os10.os10_aaa
# tasks file for dellemc.os10.os10_aaa
- name: "Provision {{ ansible_network_os }} tasks"
include_tasks: provision_os10.yaml
4 changes: 2 additions & 2 deletions roles/os10_aaa/tasks/provision_os10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
template:
src: os10_aaa.j2
dest: "{{ build_dir }}/aaa10_{{ hostname }}.conf.part"
when: (ansible_network_os is defined and ansible_network_os == "dellemc_networking.os10.os10") and ((os10_cfg_generate | default('False')) | bool)
when: (ansible_network_os is defined and ansible_network_os == "dellemc.os10.os10") and ((os10_cfg_generate | default('False')) | bool)
# notify: save config os10
register: generate_output

- name: "Provisioning AAA configuration for os10"
os10_config:
src: os10_aaa.j2
when: (ansible_network_os is defined and ansible_network_os == "dellemc_networking.os10.os10")
when: (ansible_network_os is defined and ansible_network_os == "dellemc.os10.os10")
# notify: save config os10
register: output
12 changes: 6 additions & 6 deletions roles/os10_aaa/tests/inventory.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
spine1 ansible_host=10.11.182.25 ansible_network_os="dellemc_networking.os10.os10"
spine2 ansible_host=10.16.151.220 ansible_network_os="dellemc_networking.os10.os10"
spine1 ansible_host=10.11.182.25 ansible_network_os="dellemc.os10.os10"
spine2 ansible_host=10.16.151.220 ansible_network_os="dellemc.os10.os10"

leaf1 ansible_host=10.11.182.23 ansible_network_os="dellemc_networking.os10.os10"
leaf2 ansible_host=10.11.182.16 ansible_network_os="dellemc_networking.os10.os10"
leaf3 ansible_host=10.11.182.17 ansible_network_os="dellemc_networking.os10.os10"
leaf4 ansible_host=10.16.148.79 ansible_network_os="dellemc_networking.os10.os10"
leaf1 ansible_host=10.11.182.23 ansible_network_os="dellemc.os10.os10"
leaf2 ansible_host=10.11.182.16 ansible_network_os="dellemc.os10.os10"
leaf3 ansible_host=10.11.182.17 ansible_network_os="dellemc.os10.os10"
leaf4 ansible_host=10.16.148.79 ansible_network_os="dellemc.os10.os10"

[spine]
spine1
Expand Down
2 changes: 1 addition & 1 deletion roles/os10_aaa/tests/main.os10.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# vars file for dellemc_networking.os10.os10_aaa,
# vars file for dellemc.os10.os10_aaa,
# below gives a sample configuration
# Sample vars for OS10 device
os10_aaa:
Expand Down
2 changes: 1 addition & 1 deletion roles/os10_aaa/tests/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
- hosts: datacenter
connection: network_cli
roles:
- dellemc_networking.os10.os10_aaa
- dellemc.os10.os10_aaa
2 changes: 1 addition & 1 deletion roles/os10_aaa/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# vars file for dellemc_networking.os10.os10_aaa
# vars file for dellemc.os10.os10_aaa
Loading

0 comments on commit db8de6a

Please sign in to comment.