Page Menu
Home
VyOS Platform
Search
Configure Global Search
Log In
Files
F119903742
common_utils.yaml
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
common_utils.yaml
View Options
# vyos.py in plugins and module_utils/network covered by these as well
# remove_default_spec() hit by multiple plays
# hit ComplexList
-
name
:
get output for single command
vyos.vyos.vyos_command
:
commands
:
-
show version
register
:
result
-
assert
:
that
:
-
result.changed == false
-
result.stdout is defined
-
result.stdout_lines is defined
# hit conditional() - used for declarative intent
# Note, this can't be run on AWS because fully testing the vyos_interface dependencies
# requires the ability to create and remove interfaces other than eth0
-
name
:
enable eth1
vyos.vyos.vyos_interface
:
name
:
eth1
enabled
:
True
state
:
present
register
:
result
-
name
:
Check intent arguments
vyos.vyos.vyos_interface
:
name
:
eth1
state
:
up
register
:
result
-
name
:
Check intent arguments (failed condition)
vyos.vyos.vyos_interface
:
name
:
eth1
state
:
down
ignore_errors
:
yes
register
:
result
-
assert
:
that
:
-
"result.failed
==
true"
-
"'state
eq(down)'
in
result.failed_conditions"
-
name
:
Config + intent
vyos.vyos.vyos_interface
:
name
:
eth1
enabled
:
False
state
:
down
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 26, 9:28 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4987644
Default Alt Text
common_utils.yaml (1 KB)
Attached To
Mode
R52 VyOS Ansible Collection
Attached
Detach File
Event Timeline
Log In to Comment