Skip to content

Commit 7787e53

Browse files
authored
prep v1.1.0 (#276)
* prep v1.1.0 * fix changelog
1 parent a70bb3b commit 7787e53

9 files changed

+101
-9
lines changed

CHANGELOG.rst

+13
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ Networktocode.Netauto Release Notes
55
.. contents:: Topics
66

77

8+
v1.1.0
9+
======
10+
11+
Release Summary
12+
---------------
13+
14+
This release adds functionality to support jdiff, via a module and a action plugin.
15+
16+
New Modules
17+
-----------
18+
19+
- networktocode.netauto.jdiff - Ansible module wrapper on jdiff python library.
20+
821
v1.0.0
922
======
1023

MANIFEST.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"collection_info": {
33
"namespace": "networktocode",
44
"name": "netauto",
5-
"version": "1.0.0",
5+
"version": "1.1.0",
66
"authors": [
77
"Network to Code <[email protected]>"
88
],

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Multi-vendor collection of Ansible Modules to automate repeateable tasks and dat
1212
* **ntc_reboot** - reboots a network device. Uses SSH/netmiko for IOS, NX-API for Nexus, and eAPI for Arista.
1313
* **ntc_rollback** - performs two major functions. (1) Creates a checkpoint file or backup running config on box. (2) Rolls back to the previously created checkpoint/backup config. Use case is to create the checkpoint/backup as the first task in a playbook and then rollback to it _if_ needed using block/rescue, i.e. try/except in Ansible. Uses SSH/netmiko for IOS, NX-API for Nexus, and eAPI for Arista.
1414
* **ntc_install_os** - installs a new operating system or just sets boot options. Depends on platform. Does not issue a "reload" command, but the device may perform an automatic reboot. Common workflow is to use ntc_file_copy, ntc_install_os, and then ntc_reboot (if needed) for upgrades. Uses SSH/netmiko for IOS, NX-API for Nexus, and eAPI for Arista. For Cisco stack switches pyntc leverages `install_mode` flag to install with the install command. This has an optional parameter of `install_mode` available on install_os.
15-
15+
* **ntc_validate_schema** - Validate data against required schema using json schema.
16+
* **jdiff** - `jdiff` is a lightweight Python library allowing you to examine structured data. `jdiff` provides an interface to intelligently compare--via key presense/absense and value comparison--JSON data objects.
1617

1718
## Background
1819

changelogs/.plugin-cache.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ plugins:
99
inventory: {}
1010
lookup: {}
1111
module:
12+
jdiff:
13+
description: Ansible module for jdiff.
14+
name: jdiff
15+
namespace: ''
16+
version_added: 1.1.0
1217
ntc_config_command:
1318
description: Writes config data to devices
1419
name: ntc_config_command
@@ -54,4 +59,4 @@ plugins:
5459
shell: {}
5560
strategy: {}
5661
vars: {}
57-
version: 1.0.0
62+
version: 1.1.0

changelogs/changelog.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,13 @@ releases:
44
changes:
55
release_summary: This is the first official release of an Ansible Collection
66
for what was previously just a repo of ansible things called ntc-ansible.
7-
release_date: '2023-04-07'
7+
release_date: '2023-04-13'
8+
1.1.0:
9+
changes:
10+
release_summary: This release adds functionality to support jdiff, via a module
11+
and a action plugin.
12+
modules:
13+
- description: Ansible module wrapper on jdiff python library.
14+
name: jdiff
15+
namespace: ''
16+
release_date: '2023-04-13'

galaxy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace: "networktocode"
99
name: "netauto"
1010

1111
# The version of the collection. Must be compatible with semantic versioning
12-
version: "1.0.0"
12+
version: "1.1.0"
1313

1414
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
1515
readme: "README.md"

plugins/action/jdiff.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
44
"""Jdiff Action Plugin for jdiff library."""
55

6-
from __future__ import (absolute_import, division, print_function)
6+
from __future__ import absolute_import, division, print_function
77

8-
from ansible.plugins.action import ActionBase
98
from ansible.errors import AnsibleError
109
from ansible.module_utils.six import raise_from
10+
from ansible.plugins.action import ActionBase
1111

1212
try:
1313
from jdiff import CheckType, extract_data_from_json
@@ -54,12 +54,14 @@ def main(args):
5454

5555
class ActionModule(ActionBase):
5656
"""Ansible Action Module to interact with jdiff.
57+
5758
Args:
5859
ActionBase (ActionBase): Ansible Action Plugin
5960
"""
6061

6162
def run(self, tmp=None, task_vars=None):
6263
"""Run of action plugin for interacting with jdiff.
64+
6365
Args:
6466
tmp ([type], optional): [description]. Defaults to None.
6567
task_vars ([type], optional): [description]. Defaults to None.

poetry.lock

+62-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "ntc-ansible"
3-
version = "1.0.0"
3+
version = "1.1.0"
44
description = "Multi-vendor Ansible Collection for Network Automation"
55
authors = ["Network to Code <[email protected]>"]
66
license = "Apache 2.0"
@@ -10,6 +10,7 @@ python = "^3.7.2"
1010
pyntc = "^1.0.0"
1111
jsonschema = "^4.17.3"
1212
ansible = "^2.9"
13+
jdiff = "^0.0.2"
1314

1415
[tool.poetry.dev-dependencies]
1516
black = "^22.6.0"

0 commit comments

Comments
 (0)