Skip to content

Commit 8bff2a7

Browse files
authored
Merge pull request #94 from napalm-automation/develop
Release 0.7.2
2 parents 3f32732 + fd9bac3 commit 8bff2a7

11 files changed

+35
-20
lines changed

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ python:
66
env:
77
- ANSIBLE_VERSION=2.2
88
- ANSIBLE_VERSION=2.3
9+
- ANSIBLE_VERSION=2.4
910

1011
install:
1112
- pip install pylama
@@ -17,6 +18,7 @@ script:
1718
- cd tests
1819
- ./run_tests.sh
1920
- ./test_changelog.sh
21+
- cd ..
2022

2123
deploy:
2224
provider: pypi

CHANGELOG.rst

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
0.7.2 (develop)
2+
=====
3+
4+
0.7.1
5+
=====
6+
7+
- Add support for ``nxos_ssh`` driver
8+
- Update unit tests to support Ansible 2.4
9+
110
0.7.0
211
=====
312

napalm_ansible/napalm_cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
def main():
6262
os_choices = ['eos', 'junos', 'iosxr', 'fortios',
63-
'ios', 'mock', 'nxos', 'panos', 'vyos', 'ros']
63+
'ios', 'mock', 'nxos', 'nxos_ssh', 'panos', 'vyos', 'ros']
6464
module = AnsibleModule(
6565
argument_spec=dict(
6666
hostname=dict(type='str', required=False, aliases=['host']),

napalm_ansible/napalm_get_facts.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
description:
4747
- OS of the device
4848
required: False
49-
choices: ['eos', 'junos', 'iosxr', 'fortios', 'ios', 'mock', 'nxos', 'panos', 'vyos']
49+
choices: ['eos', 'junos', 'iosxr', 'fortios', 'ios', 'mock', 'nxos', 'nxos_ssh', 'panos',
50+
'vyos']
5051
provider:
5152
description:
5253
- Dictionary which acts as a collection of arguments used to define the characteristics
@@ -153,7 +154,8 @@
153154

154155

155156
def main():
156-
os_choices = ['eos', 'junos', 'iosxr', 'fortios', 'ios', 'mock', 'nxos', 'panos', 'vyos', 'ros']
157+
os_choices = ['eos', 'junos', 'iosxr', 'fortios', 'ios', 'mock', 'nxos', 'nxos_ssh', 'panos',
158+
'vyos', 'ros']
157159
module = AnsibleModule(
158160
argument_spec=dict(
159161
hostname=dict(type='str', required=False, aliases=['host']),

napalm_ansible/napalm_install_config.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
description:
5757
- OS of the device
5858
required: False
59-
choices: ['eos', 'junos', 'iosxr', 'fortios', 'ios', 'mock', 'nxos', 'panos', 'vyos']
59+
choices: ['eos', 'junos', 'iosxr', 'fortios', 'ios', 'mock', 'nxos', 'nxos_ssh', 'panos',
60+
'vyos']
6061
timeout:
6162
description:
6263
- Time in seconds to wait for the device to respond
@@ -176,7 +177,8 @@ def save_to_file(content, filename):
176177

177178

178179
def main():
179-
os_choices = ['eos', 'junos', 'iosxr', 'fortios', 'ios', 'mock', 'nxos', 'panos', 'vyos', 'ros']
180+
os_choices = ['eos', 'junos', 'iosxr', 'fortios', 'ios', 'mock', 'nxos',
181+
'nxos_ssh', 'panos', 'vyos', 'ros']
180182
module = AnsibleModule(
181183
argument_spec=dict(
182184
hostname=dict(type='str', required=False, aliases=['host']),

napalm_ansible/napalm_parse_yang.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
- OS of the device
6565
required: False
6666
choices: ['eos', 'junos', 'iosxr', 'fortios', 'ios', 'mock',
67-
'nxos', 'panos', 'vyos']
67+
'nxos', 'nxos_ssh', 'panos', 'vyos']
6868
provider:
6969
description:
7070
- Dictionary which acts as a collection of arguments used to define
@@ -252,7 +252,7 @@ def parse_from_device(module, os_choices):
252252

253253
def main():
254254
os_choices = ['eos', 'junos', 'iosxr', 'fortios', 'ios',
255-
'mock', 'nxos', 'panos', 'vyos']
255+
'mock', 'nxos', 'nxos_ssh', 'panos', 'vyos']
256256
module = AnsibleModule(
257257
argument_spec=dict(
258258
hostname=dict(type='str', required=False, aliases=['host']),

napalm_ansible/napalm_validate.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
- OS of the device.
4040
required: False
4141
choices: ['eos', 'junos', 'iosxr', 'fortios', 'ios', 'mock',
42-
'nxos', 'panos', 'vyos']
42+
'nxos', 'nxos_ssh', 'panos', 'vyos']
4343
provider:
4444
description:
4545
- Dictionary which acts as a collection of arguments used to define
@@ -204,7 +204,7 @@ def get_root_object(models):
204204

205205
def main():
206206
os_choices = ['eos', 'junos', 'iosxr', 'fortios',
207-
'ios', 'mock', 'nxos', 'panos', 'vyos']
207+
'ios', 'mock', 'nxos', 'nxos_ssh', 'panos', 'vyos']
208208
module = AnsibleModule(
209209
argument_spec=dict(
210210
models=dict(type="list", required=False),

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
setup(
1313
name="napalm-ansible",
14-
version='0.7.0',
14+
version='0.7.2',
1515
packages=["napalm_ansible"],
1616
author="David Barroso, Kirk Byers, Mircea Ulinic",
1717

tests/napalm_get_facts/get_facts_error.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
route_to:
2020
protocol: static
2121
destination: 8.8.8.8
22-
register: napalm_facts # store information here
22+
register: test_napalm # store information here
2323
- assert:
2424
that:
25-
- napalm_facts.ansible_facts.napalm_facts.hostname == "localhost"
26-
- napalm_facts.ansible_facts.napalm_interfaces.Ethernet1.mac_address == "08:00:27:C6:00:F0"
25+
- test_napalm.ansible_facts.napalm_facts.hostname == "localhost"
26+
- test_napalm.ansible_facts.napalm_interfaces.Ethernet1.mac_address == "08:00:27:C6:00:F0"
2727
rescue:
2828
- debug:
2929
var: ansible_failed_result.msg

tests/napalm_get_facts/get_facts_not_implemented.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
protocol: static
2121
destination: 8.8.8.8
2222
ignore_notimplemented: "{{ ignore_notimplemented }}"
23-
register: napalm_facts # store information here
23+
register: test_napalm # store information here
2424
- assert:
2525
that:
26-
- napalm_facts.ansible_facts.napalm_facts.hostname == "localhost"
27-
- napalm_facts.ansible_facts.napalm_interfaces.Ethernet1.mac_address == "08:00:27:C6:00:F0"
26+
- test_napalm.ansible_facts.napalm_facts.hostname == "localhost"
27+
- test_napalm.ansible_facts.napalm_interfaces.Ethernet1.mac_address == "08:00:27:C6:00:F0"
2828
rescue:
2929
- fail:
3030
msg: Whe shouldn't be here

tests/napalm_get_facts/get_facts_ok.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
route_to:
1919
protocol: static
2020
destination: 8.8.8.8
21-
register: napalm_facts # store information here
21+
register: test_napalm
2222
- assert:
2323
that:
24-
- napalm_facts.ansible_facts.napalm_facts.hostname == "localhost"
25-
- "{{ '1.0.4.0/24' in napalm_facts.ansible_facts.napalm_route_to }}"
26-
- napalm_facts.ansible_facts.napalm_interfaces.Ethernet1.mac_address == "08:00:27:C6:00:F0"
24+
- test_napalm.ansible_facts.napalm_facts.hostname == "localhost"
25+
- "{{ '1.0.4.0/24' in test_napalm.ansible_facts.napalm_route_to }}"
26+
- test_napalm.ansible_facts.napalm_interfaces.Ethernet1.mac_address == "08:00:27:C6:00:F0"
2727
# Check direct facts
2828
- assert:
2929
that:

0 commit comments

Comments
 (0)