Commenting Cliconf support call for IOS-XR modules for Ansible 2.9 version (#55751)
* iosxr cliconf support call Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com> * iosxr cliconf support call Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com> * iosxr cliconf support call Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com> * iosxr cliconf support call Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com> * iosxr cliconf support call Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
This commit is contained in:
parent
45d21b6474
commit
7e7eced425
5 changed files with 15 additions and 10 deletions
|
@ -234,8 +234,9 @@ def main():
|
|||
|
||||
config_object = None
|
||||
if is_cliconf(module):
|
||||
module.deprecate(msg="cli support for 'iosxr_banner' is deprecated. Use transport netconf instead",
|
||||
version="2.9")
|
||||
# Commenting the below cliconf deprecation support call for Ansible 2.9 as it'll be continued to be supported
|
||||
# module.deprecate("cli support for 'iosxr_interface' is deprecated. Use transport netconf instead",
|
||||
# version='2.9')
|
||||
config_object = CliConfiguration(module)
|
||||
elif is_netconf(module):
|
||||
config_object = NCConfiguration(module)
|
||||
|
|
|
@ -637,8 +637,9 @@ def main():
|
|||
|
||||
config_object = None
|
||||
if is_cliconf(module):
|
||||
module.deprecate("cli support for 'iosxr_interface' is deprecated. Use transport netconf instead",
|
||||
version='2.9')
|
||||
# Commenting the below cliconf deprecation support call for Ansible 2.9 as it'll be continued to be supported
|
||||
# module.deprecate("cli support for 'iosxr_interface' is deprecated. Use transport netconf instead",
|
||||
# version='2.9')
|
||||
config_object = CliConfiguration(module)
|
||||
elif is_netconf(module):
|
||||
if module.params['active'] == 'preconfigure':
|
||||
|
|
|
@ -711,8 +711,9 @@ def main():
|
|||
|
||||
config_object = None
|
||||
if is_cliconf(module):
|
||||
module.deprecate(msg="cli support for 'iosxr_logging' is deprecated. Use transport netconf instead",
|
||||
version="2.9")
|
||||
# Commenting the below cliconf deprecation support call for Ansible 2.9 as it'll be continued to be supported
|
||||
# module.deprecate("cli support for 'iosxr_interface' is deprecated. Use transport netconf instead",
|
||||
# version='2.9')
|
||||
config_object = CliConfiguration(module)
|
||||
elif is_netconf(module):
|
||||
config_object = NCConfiguration(module)
|
||||
|
|
|
@ -573,8 +573,9 @@ def main():
|
|||
|
||||
config_object = None
|
||||
if is_cliconf(module):
|
||||
module.deprecate(msg="cli support for 'iosxr_system' is deprecated. Use transport netconf instead",
|
||||
version="2.9")
|
||||
# Commenting the below cliconf deprecation support call for Ansible 2.9 as it'll be continued to be supported
|
||||
# module.deprecate("cli support for 'iosxr_interface' is deprecated. Use transport netconf instead",
|
||||
# version='2.9')
|
||||
config_object = CliConfiguration(module)
|
||||
elif is_netconf(module):
|
||||
config_object = NCConfiguration(module)
|
||||
|
|
|
@ -700,8 +700,9 @@ def main():
|
|||
|
||||
config_object = None
|
||||
if is_cliconf(module):
|
||||
module.deprecate(msg="cli support for 'iosxr_user' is deprecated. Use transport netconf instead",
|
||||
version="2.9")
|
||||
# Commenting the below cliconf deprecation support call for Ansible 2.9 as it'll be continued to be supported
|
||||
# module.deprecate("cli support for 'iosxr_interface' is deprecated. Use transport netconf instead",
|
||||
# version='2.9')
|
||||
config_object = CliConfiguration(module, result)
|
||||
elif is_netconf(module):
|
||||
config_object = NCConfiguration(module, result)
|
||||
|
|
Loading…
Reference in a new issue