Page Menu
Home
VyOS Platform
Search
Configure Global Search
Log In
Files
F118310437
merged.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
merged.yaml
View Options
---
-
debug
:
msg
:
"START
vyos_lag_interfaces
merged
integration
tests
on
connection={{
ansible_connection
}}"
-
include_tasks
:
_remove_config.yaml
-
include_tasks
:
_remove_bond.yaml
-
include_tasks
:
_add_bond.yaml
-
block
:
-
name
:
Merge the provided configuration with the exisiting running configuration
vyos.vyos.vyos_lag_interfaces
:
&merged
config
:
-
name
:
bond0
hash_policy
:
"layer2"
mode
:
"active-backup"
members
:
-
member
:
eth1
primary
:
eth1
-
name
:
bond1
hash_policy
:
"layer2+3"
mode
:
"active-backup"
members
:
-
member
:
eth2
primary
:
eth2
state
:
merged
register
:
result
-
name
:
Assert that before dicts were correctly generated
assert
:
that
:
"{{
merged['before']
|
symmetric_difference(result['before'])
|length
==
0
}}"
-
name
:
Assert that correct set of commands were generated
assert
:
that
:
-
"{{
merged['commands']
|
symmetric_difference(result['commands'])
|length
==
0
}}"
-
name
:
Assert that after dicts was correctly generated
assert
:
that
:
-
"{{
merged['after']
|
symmetric_difference(result['after'])
|length
==
0
}}"
-
name
:
Merge the provided configuration with the existing running configuration (IDEMPOTENT)
vyos.vyos.vyos_lag_interfaces
:
*merged
register
:
result
-
name
:
Assert that the previous task was idempotent
assert
:
that
:
-
"result['changed']
==
false"
-
name
:
Assert that before dicts were correctly generated
assert
:
that
:
-
"{{
merged['after']
|
symmetric_difference(result['before'])
|length
==
0
}}"
always
:
-
include_tasks
:
_remove_config.yaml
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 17, 12:59 AM (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4416772
Default Alt Text
merged.yaml (1 KB)
Attached To
Mode
R52 VyOS Ansible Collection
Attached
Detach File
Event Timeline
Log In to Comment