Fix netconf plugin set_option (#43589)

* To enable set config option with `Netconf` plugin
  inherit `NetconfBase` class from `AnsiblePlugin` parent class
pull/43533/head
Ganesh Nalawade 6 years ago committed by GitHub
parent 733e512f35
commit b0bd1651fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,12 +19,12 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from abc import ABCMeta, abstractmethod
from abc import abstractmethod
from functools import wraps
from ansible.errors import AnsibleError
from ansible.module_utils.six import with_metaclass
from ansible.module_utils._text import to_bytes
from ansible.plugins import AnsiblePlugin
try:
from ncclient.operations import RPCError
@ -47,7 +47,7 @@ def ensure_connected(func):
return wrapped
class NetconfBase(with_metaclass(ABCMeta, object)):
class NetconfBase(AnsiblePlugin):
"""
A base class for implementing Netconf connections

Loading…
Cancel
Save