summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSagar Paul <sagpaul@redhat.com>2022-04-26 01:18:42 +0530
committerGitHub <noreply@github.com>2022-04-25 19:48:42 +0000
commit43c2ecba6a04cc121375a541d817343c33ebe235 (patch)
treea3fe0df5aaccdbd7b955241d7fe9de8f80795574
parentb834c87f13e3ec908bfcd79022404ddf71d6559e (diff)
downloadvyos.vyos-43c2ecba6a04cc121375a541d817343c33ebe235.tar.gz
vyos.vyos-43c2ecba6a04cc121375a541d817343c33ebe235.zip
updated references of base plugins to netcommon (#232)
updated references of base plugins to netcommon SUMMARY Minimum required ansible.netcommon version is 2.5.1 Updated base plugin references to ansible.netcommon ISSUE TYPE Feature Pull Request COMPONENT NAME ADDITIONAL INFORMATION Reviewed-by: Nathaniel Case <this.is@nathanielca.se>
-rw-r--r--changelogs/fragments/netcommon_ref_update.yaml4
-rw-r--r--galaxy.yml2
-rw-r--r--plugins/cliconf/vyos.py4
-rw-r--r--plugins/terminal/vyos.py4
4 files changed, 11 insertions, 3 deletions
diff --git a/changelogs/fragments/netcommon_ref_update.yaml b/changelogs/fragments/netcommon_ref_update.yaml
new file mode 100644
index 0000000..f28c6e1
--- /dev/null
+++ b/changelogs/fragments/netcommon_ref_update.yaml
@@ -0,0 +1,4 @@
+---
+major_changes:
+ - "Minimum required ansible.netcommon version is 2.5.1."
+ - "Updated base plugin references to ansible.netcommon."
diff --git a/galaxy.yml b/galaxy.yml
index ceaed7a..a51c0db 100644
--- a/galaxy.yml
+++ b/galaxy.yml
@@ -2,7 +2,7 @@
authors:
- Ansible Network Community (ansible-network)
dependencies:
- "ansible.netcommon": ">=2.0.1"
+ "ansible.netcommon": ">=2.5.1"
license_file: LICENSE
name: vyos
description: Ansible Network Collection for VYOS devices.
diff --git a/plugins/cliconf/vyos.py b/plugins/cliconf/vyos.py
index b1a55b1..f2064d7 100644
--- a/plugins/cliconf/vyos.py
+++ b/plugins/cliconf/vyos.py
@@ -54,7 +54,9 @@ from ansible_collections.ansible.netcommon.plugins.module_utils.network.common.c
from ansible_collections.ansible.netcommon.plugins.module_utils.network.common.utils import (
to_list,
)
-from ansible.plugins.cliconf import CliconfBase
+from ansible_collections.ansible.netcommon.plugins.plugin_utils.cliconf_base import (
+ CliconfBase,
+)
class Cliconf(CliconfBase):
diff --git a/plugins/terminal/vyos.py b/plugins/terminal/vyos.py
index 850e528..ef036ac 100644
--- a/plugins/terminal/vyos.py
+++ b/plugins/terminal/vyos.py
@@ -23,8 +23,10 @@ __metaclass__ = type
import os
import re
-from ansible.plugins.terminal import TerminalBase
from ansible.errors import AnsibleConnectionFailure
+from ansible_collections.ansible.netcommon.plugins.plugin_utils.terminal_base import (
+ TerminalBase,
+)
class TerminalModule(TerminalBase):