aci_switch_leaf_selector: Support missing policy_group (#47992)

* aci_switch_leaf_selector: Support empty policy_group

* Reorganize code

* Adapt integration tests to fix
This commit is contained in:
Dag Wieers
2018-11-05 19:02:06 +01:00
committed by GitHub
parent ee13bc248b
commit 591b074e43
3 changed files with 28 additions and 20 deletions

View File

@@ -68,7 +68,7 @@
- sw_leaf_selec_check_mode_present is changed
- sw_leaf_selec_present is changed
- sw_leaf_selec_present.previous == []
- 'sw_leaf_selec_present.sent == {"infraLeafS": {"attributes": {"name": "leaf_selector_name"}, "children": [{"infraNodeBlk": {"attributes": {"from_": "1011", "name": "node_blk_name", "to_": "1011"}}},{"infraRsAccNodePGrp": {"attributes": {"tDn": "uni/infra/funcprof/accnodepgrp-None"}}}]}}'
- 'sw_leaf_selec_present.sent == {"infraLeafS": {"attributes": {"name": "leaf_selector_name"}, "children": [{"infraNodeBlk": {"attributes": {"from_": "1011", "name": "node_blk_name", "to_": "1011"}}}]}}'
- sw_leaf_selec_idempotent is not changed
- sw_leaf_selec_idempotent.sent == {}
- sw_leaf_selec_update is changed