mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Convert to reduced list of known types (#50010)
This commit is contained in:
committed by
Jordan Borean
parent
fcd1486b51
commit
05c6ff79f9
@@ -96,7 +96,7 @@ RETURN = """
|
||||
diff.prepared:
|
||||
description: Configuration difference before and after applying change.
|
||||
returned: when configuration is changed and diff option is enabled.
|
||||
type: string
|
||||
type: str
|
||||
sample: >
|
||||
[edit system login]
|
||||
+ message \"this is my login banner\";
|
||||
|
||||
@@ -199,7 +199,7 @@ RETURN = """
|
||||
backup_path:
|
||||
description: The full path to the backup file
|
||||
returned: when backup is yes
|
||||
type: string
|
||||
type: str
|
||||
sample: /playbooks/ansible/backup/config.2016-07-16@22:28:34
|
||||
"""
|
||||
import re
|
||||
|
||||
@@ -180,7 +180,7 @@ RETURN = """
|
||||
diff.prepared:
|
||||
description: Configuration difference before and after applying change.
|
||||
returned: when configuration is changed and diff option is enabled.
|
||||
type: string
|
||||
type: str
|
||||
sample: >
|
||||
[edit interfaces]
|
||||
+ ge-0/0/1 {
|
||||
|
||||
@@ -124,7 +124,7 @@ RETURN = """
|
||||
diff:
|
||||
description: Configuration difference before and after applying change.
|
||||
returned: when configuration is changed and diff option is enabled.
|
||||
type: string
|
||||
type: str
|
||||
sample: >
|
||||
[edit interfaces]
|
||||
+ ge-0/0/1 {
|
||||
|
||||
@@ -93,7 +93,7 @@ RETURN = """
|
||||
diff:
|
||||
description: Configuration difference before and after applying change.
|
||||
returned: when configuration is changed and diff option is enabled.
|
||||
type: string
|
||||
type: str
|
||||
sample: >
|
||||
[edit interfaces ge-0/0/1 unit 0 family inet]
|
||||
+ address 192.0.2.1/32;
|
||||
|
||||
@@ -136,7 +136,7 @@ RETURN = """
|
||||
diff:
|
||||
description: Configuration difference before and after applying change.
|
||||
returned: when configuration is changed and diff option is enabled.
|
||||
type: string
|
||||
type: str
|
||||
sample: >
|
||||
[edit interfaces]
|
||||
+ ge-0/0/6 {
|
||||
|
||||
@@ -89,7 +89,7 @@ RETURN = """
|
||||
diff.prepared:
|
||||
description: Configuration difference before and after applying change.
|
||||
returned: when configuration is changed and diff option is enabled.
|
||||
type: string
|
||||
type: str
|
||||
sample: >
|
||||
[edit]
|
||||
+ protocols {
|
||||
|
||||
@@ -88,7 +88,7 @@ RETURN = """
|
||||
diff.prepared:
|
||||
description: Configuration difference before and after applying change.
|
||||
returned: when configuration is changed and diff option is enabled.
|
||||
type: string
|
||||
type: str
|
||||
sample: >
|
||||
[edit protocols lldp]
|
||||
+ interface ge-0/0/5;
|
||||
|
||||
@@ -127,7 +127,7 @@ RETURN = """
|
||||
diff.prepared:
|
||||
description: Configuration difference before and after applying change.
|
||||
returned: when configuration is changed and diff option is enabled.
|
||||
type: string
|
||||
type: str
|
||||
sample: >
|
||||
[edit system syslog]
|
||||
+ [edit system syslog]
|
||||
|
||||
@@ -83,11 +83,11 @@ RETURN = """
|
||||
xml:
|
||||
description: The xml return string from the rpc request.
|
||||
returned: always
|
||||
type: string
|
||||
type: str
|
||||
output:
|
||||
description: The rpc rely converted to the output format.
|
||||
returned: always
|
||||
type: string
|
||||
type: str
|
||||
output_lines:
|
||||
description: The text output split into lines for readability.
|
||||
returned: always
|
||||
|
||||
@@ -120,7 +120,7 @@ RETURN = """
|
||||
diff.prepared:
|
||||
description: Configuration difference before and after applying change.
|
||||
returned: when configuration is changed and diff option is enabled.
|
||||
type: string
|
||||
type: str
|
||||
sample: >
|
||||
[edit routing-options static]
|
||||
route 2.2.2.0/24 { ... }
|
||||
|
||||
@@ -96,7 +96,7 @@ RETURN = """
|
||||
diff.prepared:
|
||||
description: Configuration difference before and after applying change.
|
||||
returned: when configuration is changed and diff option is enabled.
|
||||
type: string
|
||||
type: str
|
||||
sample: >
|
||||
[edit system]
|
||||
+ host-name test;
|
||||
|
||||
@@ -138,7 +138,7 @@ RETURN = """
|
||||
diff.prepared:
|
||||
description: Configuration difference before and after applying change.
|
||||
returned: when configuration is changed and diff option is enabled.
|
||||
type: string
|
||||
type: str
|
||||
sample: >
|
||||
[edit system login]
|
||||
+ user test-user {
|
||||
|
||||
@@ -113,7 +113,7 @@ RETURN = """
|
||||
diff.prepared:
|
||||
description: Configuration difference before and after applying change.
|
||||
returned: when configuration is changed and diff option is enabled.
|
||||
type: string
|
||||
type: str
|
||||
sample: >
|
||||
[edit vlans]
|
||||
+ test-vlan-1 {
|
||||
|
||||
@@ -155,7 +155,7 @@ RETURN = """
|
||||
diff.prepared:
|
||||
description: Configuration difference before and after applying change.
|
||||
returned: when configuration is changed and diff option is enabled.
|
||||
type: string
|
||||
type: str
|
||||
sample: >
|
||||
[edit routing-instances]
|
||||
+ test-1 {
|
||||
|
||||
Reference in New Issue
Block a user