69bc24f607
* lag interfaces resource module Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * sanity check imports Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * sanity fixes Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * dict_diff usage issue fix Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * new task Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * overridden updated Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * dict update Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * comments incorporated Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * facts merged Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * rebased and merged Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * new failures added Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * obsolete file removed Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * test cases updated Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * comments incorporated Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com> * dependency added Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>
115 lines
2.6 KiB
YAML
115 lines
2.6 KiB
YAML
---
|
|
merged:
|
|
before:
|
|
- name: "bond0"
|
|
|
|
- name: "bond1"
|
|
|
|
commands:
|
|
- "set interfaces bonding bond0 hash-policy 'layer2'"
|
|
- "set interfaces bonding bond0 mode 'active-backup'"
|
|
- "set interfaces ethernet eth1 bond-group 'bond0'"
|
|
- "set interfaces bonding bond0 primary 'eth1'"
|
|
- "set interfaces bonding bond1 hash-policy 'layer2+3'"
|
|
- "set interfaces bonding bond1 mode 'active-backup'"
|
|
- "set interfaces ethernet eth2 bond-group 'bond1'"
|
|
- "set interfaces bonding bond1 primary 'eth2'"
|
|
|
|
after:
|
|
- name: "bond0"
|
|
hash_policy: "layer2"
|
|
members:
|
|
- member: eth1
|
|
mode: "active-backup"
|
|
primary: eth1
|
|
|
|
- name: "bond1"
|
|
hash_policy: "layer2+3"
|
|
members:
|
|
- member: eth2
|
|
mode: "active-backup"
|
|
primary: eth2
|
|
|
|
populate:
|
|
- name: "bond0"
|
|
hash_policy: "layer2"
|
|
members:
|
|
- member: eth1
|
|
mode: "active-backup"
|
|
primary: eth1
|
|
|
|
- name: "bond1"
|
|
hash_policy: "layer2+3"
|
|
members:
|
|
- member: eth2
|
|
mode: "active-backup"
|
|
primary: eth2
|
|
|
|
replaced:
|
|
commands:
|
|
- "delete interfaces bonding bond1 primary"
|
|
- "set interfaces bonding bond1 hash-policy 'layer2'"
|
|
- "set interfaces bonding bond1 mode '802.3ad'"
|
|
|
|
after:
|
|
- name: "bond0"
|
|
hash_policy: "layer2"
|
|
members:
|
|
- member: eth1
|
|
mode: "active-backup"
|
|
primary: eth1
|
|
|
|
- name: "bond1"
|
|
hash_policy: "layer2"
|
|
members:
|
|
- member: eth2
|
|
mode: "802.3ad"
|
|
|
|
overridden:
|
|
commands:
|
|
- "delete interfaces bonding bond0 hash-policy"
|
|
- "delete interfaces ethernet eth1 bond-group 'bond0'"
|
|
- "delete interfaces bonding bond0 mode"
|
|
- "delete interfaces bonding bond0 primary"
|
|
- "set interfaces bonding bond1 hash-policy 'layer2'"
|
|
|
|
after:
|
|
- name: "bond0"
|
|
- name: "bond1"
|
|
hash_policy: "layer2"
|
|
members:
|
|
- member: eth2
|
|
mode: "active-backup"
|
|
primary: eth2
|
|
|
|
deleted:
|
|
commands:
|
|
- "delete interfaces bonding bond0 hash-policy"
|
|
- "delete interfaces ethernet eth1 bond-group 'bond0'"
|
|
- "delete interfaces bonding bond0 mode"
|
|
- "delete interfaces bonding bond0 primary"
|
|
- "delete interfaces bonding bond1 hash-policy"
|
|
- "delete interfaces ethernet eth2 bond-group 'bond1'"
|
|
- "delete interfaces bonding bond1 mode"
|
|
- "delete interfaces bonding bond1 primary"
|
|
|
|
after:
|
|
- name: "bond0"
|
|
|
|
- name: "bond1"
|
|
|
|
round_trip:
|
|
after:
|
|
- name: "bond0"
|
|
hash_policy: "layer2+3"
|
|
members:
|
|
- member: eth1
|
|
mode: "802.3ad"
|
|
primary: eth1
|
|
|
|
- name: "bond1"
|
|
hash_policy: "layer2"
|
|
members:
|
|
- member: eth2
|
|
mode: "xor-hash"
|
|
primary: eth2
|