summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Nalawade <ganesh634@gmail.com>2018-04-17 11:58:40 +0530
committerGitHub <noreply@github.com>2018-04-17 11:58:40 +0530
commit8f2d46ecf86bd2159bae0fef9fc9c90dd6755173 (patch)
tree45a0c3c1d49d812d3b8a063f7574331149ebb683
parent897eab8d04e2286bfe0f55b6223d50798b303a88 (diff)
downloadansible-8f2d46ecf86bd2159bae0fef9fc9c90dd6755173.tar.gz
Add supported connection in junos module documentation (#38813) (#38865)
* Add supported connection in junos module documentation Add supported connection type in junos module doucmentation. * adds link to platform docs * makes recommended connection a code snippet * does this fix banner and command? * does this fix the rest of the errors? (cherry picked from commit 67d561b0c8dc30490be13603e431a709079f3e50)
-rw-r--r--changelogs/fragments/junos_module_doc_fixes.yaml2
-rw-r--r--lib/ansible/modules/network/junos/junos_banner.py2
-rw-r--r--lib/ansible/modules/network/junos/junos_command.py2
-rw-r--r--lib/ansible/modules/network/junos/junos_config.py2
-rw-r--r--lib/ansible/modules/network/junos/junos_facts.py2
-rw-r--r--lib/ansible/modules/network/junos/junos_interface.py2
-rw-r--r--lib/ansible/modules/network/junos/junos_l2_interface.py2
-rw-r--r--lib/ansible/modules/network/junos/junos_l3_interface.py2
-rw-r--r--lib/ansible/modules/network/junos/junos_linkagg.py2
-rw-r--r--lib/ansible/modules/network/junos/junos_lldp.py2
-rw-r--r--lib/ansible/modules/network/junos/junos_lldp_interface.py2
-rw-r--r--lib/ansible/modules/network/junos/junos_logging.py2
-rw-r--r--lib/ansible/modules/network/junos/junos_netconf.py2
-rw-r--r--lib/ansible/modules/network/junos/junos_package.py1
-rw-r--r--lib/ansible/modules/network/junos/junos_rpc.py2
-rw-r--r--lib/ansible/modules/network/junos/junos_scp.py1
-rw-r--r--lib/ansible/modules/network/junos/junos_static_route.py2
-rw-r--r--lib/ansible/modules/network/junos/junos_system.py2
-rw-r--r--lib/ansible/modules/network/junos/junos_user.py2
-rw-r--r--lib/ansible/modules/network/junos/junos_vlan.py2
-rw-r--r--lib/ansible/modules/network/junos/junos_vrf.py2
21 files changed, 40 insertions, 0 deletions
diff --git a/changelogs/fragments/junos_module_doc_fixes.yaml b/changelogs/fragments/junos_module_doc_fixes.yaml
new file mode 100644
index 0000000000..fce49f86e8
--- /dev/null
+++ b/changelogs/fragments/junos_module_doc_fixes.yaml
@@ -0,0 +1,2 @@
+bugfixes:
+- Add supported connection in junos module documentation (https://github.com/ansible/ansible/pull/38813)
diff --git a/lib/ansible/modules/network/junos/junos_banner.py b/lib/ansible/modules/network/junos/junos_banner.py
index dd3f8ef95a..42ee6cd7e8 100644
--- a/lib/ansible/modules/network/junos/junos_banner.py
+++ b/lib/ansible/modules/network/junos/junos_banner.py
@@ -54,6 +54,8 @@ notes:
- This module requires the netconf system service be enabled on
the remote device being managed.
- Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4.
+ - Recommended connection is C(netconf). See L(the Junos OS Platform Options,../network/user_guide/platform_junos.html).
+ - This module also works with C(local) connections for legacy playbooks.
extends_documentation_fragment: junos
"""
diff --git a/lib/ansible/modules/network/junos/junos_command.py b/lib/ansible/modules/network/junos/junos_command.py
index cc8ae31901..81c2d7f0f1 100644
--- a/lib/ansible/modules/network/junos/junos_command.py
+++ b/lib/ansible/modules/network/junos/junos_command.py
@@ -102,6 +102,8 @@ notes:
- This module requires the netconf system service be enabled on
the remote device being managed.
- Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4.
+ - Recommended connection is C(netconf). See L(the Junos OS Platform Options,../network/user_guide/platform_junos.html).
+ - This module also works with C(network_cli) connections and with C(local) connections for legacy playbooks.
"""
EXAMPLES = """
diff --git a/lib/ansible/modules/network/junos/junos_config.py b/lib/ansible/modules/network/junos/junos_config.py
index 7bc2360502..e1cbf5bff2 100644
--- a/lib/ansible/modules/network/junos/junos_config.py
+++ b/lib/ansible/modules/network/junos/junos_config.py
@@ -146,6 +146,8 @@ notes:
- Loading JSON-formatted configuration I(json) is supported
starting in Junos OS Release 16.1 onwards.
- Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4.
+ - Recommended connection is C(netconf). See L(the Junos OS Platform Options,../network/user_guide/platform_junos.html).
+ - This module also works with C(local) connections for legacy playbooks.
"""
EXAMPLES = """
diff --git a/lib/ansible/modules/network/junos/junos_facts.py b/lib/ansible/modules/network/junos/junos_facts.py
index 62aab0b9c4..22bf248760 100644
--- a/lib/ansible/modules/network/junos/junos_facts.py
+++ b/lib/ansible/modules/network/junos/junos_facts.py
@@ -60,6 +60,8 @@ notes:
- This module requires the netconf system service be enabled on
the remote device being managed.
- Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4.
+ - Recommended connection is C(netconf). See L(the Junos OS Platform Options,../network/user_guide/platform_junos.html).
+ - This module also works with C(local) connections for legacy playbooks.
"""
EXAMPLES = """
diff --git a/lib/ansible/modules/network/junos/junos_interface.py b/lib/ansible/modules/network/junos/junos_interface.py
index b63b8e9d1b..aecf914a65 100644
--- a/lib/ansible/modules/network/junos/junos_interface.py
+++ b/lib/ansible/modules/network/junos/junos_interface.py
@@ -90,6 +90,8 @@ notes:
- This module requires the netconf system service be enabled on
the remote device being managed.
- Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4.
+ - Recommended connection is C(netconf). See L(the Junos OS Platform Options,../network/user_guide/platform_junos.html).
+ - This module also works with C(local) connections for legacy playbooks.
extends_documentation_fragment: junos
"""
diff --git a/lib/ansible/modules/network/junos/junos_l2_interface.py b/lib/ansible/modules/network/junos/junos_l2_interface.py
index 53ae7689d3..23de9b1915 100644
--- a/lib/ansible/modules/network/junos/junos_l2_interface.py
+++ b/lib/ansible/modules/network/junos/junos_l2_interface.py
@@ -69,6 +69,8 @@ notes:
- This module requires the netconf system service be enabled on
the remote device being managed.
- Tested against vqfx-10000 JUNOS Version 15.1X53-D60.4.
+ - Recommended connection is C(netconf). See L(the Junos OS Platform Options,../network/user_guide/platform_junos.html).
+ - This module also works with C(local) connections for legacy playbooks.
extends_documentation_fragment: junos
"""
diff --git a/lib/ansible/modules/network/junos/junos_l3_interface.py b/lib/ansible/modules/network/junos/junos_l3_interface.py
index e7f588d915..765258bd84 100644
--- a/lib/ansible/modules/network/junos/junos_l3_interface.py
+++ b/lib/ansible/modules/network/junos/junos_l3_interface.py
@@ -54,6 +54,8 @@ notes:
- This module requires the netconf system service be enabled on
the remote device being managed.
- Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4.
+ - Recommended connection is C(netconf). See L(the Junos OS Platform Options,../network/user_guide/platform_junos.html).
+ - This module also works with C(local) connections for legacy playbooks.
extends_documentation_fragment: junos
"""
diff --git a/lib/ansible/modules/network/junos/junos_linkagg.py b/lib/ansible/modules/network/junos/junos_linkagg.py
index 2c9774f6e9..85ad8481c0 100644
--- a/lib/ansible/modules/network/junos/junos_linkagg.py
+++ b/lib/ansible/modules/network/junos/junos_linkagg.py
@@ -69,6 +69,8 @@ notes:
- This module requires the netconf system service be enabled on
the remote device being managed.
- Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4.
+ - Recommended connection is C(netconf). See L(the Junos OS Platform Options,../network/user_guide/platform_junos.html).
+ - This module also works with C(local) connections for legacy playbooks.
extends_documentation_fragment: junos
"""
diff --git a/lib/ansible/modules/network/junos/junos_lldp.py b/lib/ansible/modules/network/junos/junos_lldp.py
index 063800a4bf..989dbe5f71 100644
--- a/lib/ansible/modules/network/junos/junos_lldp.py
+++ b/lib/ansible/modules/network/junos/junos_lldp.py
@@ -56,6 +56,8 @@ notes:
- This module requires the netconf system service be enabled on
the remote device being managed.
- Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4.
+ - Recommended connection is C(netconf). See L(the Junos OS Platform Options,../network/user_guide/platform_junos.html).
+ - This module also works with C(local) connections for legacy playbooks.
extends_documentation_fragment: junos
"""
diff --git a/lib/ansible/modules/network/junos/junos_lldp_interface.py b/lib/ansible/modules/network/junos/junos_lldp_interface.py
index 54228b7c67..a5c90b4469 100644
--- a/lib/ansible/modules/network/junos/junos_lldp_interface.py
+++ b/lib/ansible/modules/network/junos/junos_lldp_interface.py
@@ -45,6 +45,8 @@ notes:
- This module requires the netconf system service be enabled on
the remote device being managed.
- Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4.
+ - Recommended connection is C(netconf). See L(the Junos OS Platform Options,../network/user_guide/platform_junos.html).
+ - This module also works with C(local) connections for legacy playbooks.
extends_documentation_fragment: junos
"""
diff --git a/lib/ansible/modules/network/junos/junos_logging.py b/lib/ansible/modules/network/junos/junos_logging.py
index 825da3ed73..afc8a422ca 100644
--- a/lib/ansible/modules/network/junos/junos_logging.py
+++ b/lib/ansible/modules/network/junos/junos_logging.py
@@ -73,6 +73,8 @@ notes:
- This module requires the netconf system service be enabled on
the remote device being managed.
- Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4.
+ - Recommended connection is C(netconf). See L(the Junos OS Platform Options,../network/user_guide/platform_junos.html).
+ - This module also works with C(local) connections for legacy playbooks.
extends_documentation_fragment: junos
"""
diff --git a/lib/ansible/modules/network/junos/junos_netconf.py b/lib/ansible/modules/network/junos/junos_netconf.py
index 6b085e4c57..b12a6d1057 100644
--- a/lib/ansible/modules/network/junos/junos_netconf.py
+++ b/lib/ansible/modules/network/junos/junos_netconf.py
@@ -48,6 +48,8 @@ options:
choices: ['present', 'absent']
notes:
- Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4.
+ - Recommended connection is C(network_cli). See L(the Junos OS Platform Options,../network/user_guide/platform_junos.html).
+ - This module also works with C(local) connections for legacy playbooks.
"""
EXAMPLES = """
diff --git a/lib/ansible/modules/network/junos/junos_package.py b/lib/ansible/modules/network/junos/junos_package.py
index fcaae78ad9..19998a0179 100644
--- a/lib/ansible/modules/network/junos/junos_package.py
+++ b/lib/ansible/modules/network/junos/junos_package.py
@@ -86,6 +86,7 @@ notes:
- This module requires the netconf system service be enabled on
the remote device being managed.
- Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4.
+ - Works with C(local) connections only.
"""
EXAMPLES = """
diff --git a/lib/ansible/modules/network/junos/junos_rpc.py b/lib/ansible/modules/network/junos/junos_rpc.py
index c231153f63..bc19edfb5e 100644
--- a/lib/ansible/modules/network/junos/junos_rpc.py
+++ b/lib/ansible/modules/network/junos/junos_rpc.py
@@ -58,6 +58,8 @@ notes:
- This module requires the netconf system service be enabled on
the remote device being managed.
- Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4.
+ - Recommended connection is C(netconf). See L(the Junos OS Platform Options,../network/user_guide/platform_junos.html).
+ - This module also works with C(local) connections for legacy playbooks.
"""
EXAMPLES = """
diff --git a/lib/ansible/modules/network/junos/junos_scp.py b/lib/ansible/modules/network/junos/junos_scp.py
index e03f71aafa..b85d652e50 100644
--- a/lib/ansible/modules/network/junos/junos_scp.py
+++ b/lib/ansible/modules/network/junos/junos_scp.py
@@ -58,6 +58,7 @@ notes:
- This module requires the netconf system service be enabled on
the remote device being managed.
- Tested against vMX JUNOS version 17.3R1.10.
+ - Works with C(local) connections only.
"""
EXAMPLES = """
diff --git a/lib/ansible/modules/network/junos/junos_static_route.py b/lib/ansible/modules/network/junos/junos_static_route.py
index d8a942d420..75465d051a 100644
--- a/lib/ansible/modules/network/junos/junos_static_route.py
+++ b/lib/ansible/modules/network/junos/junos_static_route.py
@@ -61,6 +61,8 @@ notes:
- This module requires the netconf system service be enabled on
the remote device being managed.
- Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4.
+ - Recommended connection is C(netconf). See L(the Junos OS Platform Options,../network/user_guide/platform_junos.html).
+ - This module also works with C(local) connections for legacy playbooks.
extends_documentation_fragment: junos
"""
diff --git a/lib/ansible/modules/network/junos/junos_system.py b/lib/ansible/modules/network/junos/junos_system.py
index 80fdba5fa9..39702572c1 100644
--- a/lib/ansible/modules/network/junos/junos_system.py
+++ b/lib/ansible/modules/network/junos/junos_system.py
@@ -66,6 +66,8 @@ notes:
- This module requires the netconf system service be enabled on
the remote device being managed.
- Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4.
+ - Recommended connection is C(netconf). See L(the Junos OS Platform Options,../network/user_guide/platform_junos.html).
+ - This module also works with C(local) connections for legacy playbooks.
extends_documentation_fragment: junos
"""
diff --git a/lib/ansible/modules/network/junos/junos_user.py b/lib/ansible/modules/network/junos/junos_user.py
index f936ff85e0..94863577dd 100644
--- a/lib/ansible/modules/network/junos/junos_user.py
+++ b/lib/ansible/modules/network/junos/junos_user.py
@@ -96,6 +96,8 @@ notes:
- This module requires the netconf system service be enabled on
the remote device being managed.
- Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4.
+ - Recommended connection is C(netconf). See L(the Junos OS Platform Options,../network/user_guide/platform_junos.html).
+ - This module also works with C(local) connections for legacy playbooks.
"""
EXAMPLES = """
diff --git a/lib/ansible/modules/network/junos/junos_vlan.py b/lib/ansible/modules/network/junos/junos_vlan.py
index 5bf2e1447c..a9230bf4e1 100644
--- a/lib/ansible/modules/network/junos/junos_vlan.py
+++ b/lib/ansible/modules/network/junos/junos_vlan.py
@@ -55,6 +55,8 @@ notes:
- This module requires the netconf system service be enabled on
the remote device being managed.
- Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4.
+ - Recommended connection is C(netconf). See L(the Junos OS Platform Options,../network/user_guide/platform_junos.html).
+ - This module also works with C(local) connections for legacy playbooks.
extends_documentation_fragment: junos
"""
diff --git a/lib/ansible/modules/network/junos/junos_vrf.py b/lib/ansible/modules/network/junos/junos_vrf.py
index 3dfaaf4eae..a5eacc6ee7 100644
--- a/lib/ansible/modules/network/junos/junos_vrf.py
+++ b/lib/ansible/modules/network/junos/junos_vrf.py
@@ -80,6 +80,8 @@ notes:
- This module requires the netconf system service be enabled on
the remote device being managed.
- Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4.
+ - Recommended connection is C(netconf). See L(the Junos OS Platform Options,../network/user_guide/platform_junos.html).
+ - This module also works with C(local) connections for legacy playbooks.
extends_documentation_fragment: junos
"""