Adds parents to mutually_exclusive with src for *_config modules (#33957)

* mutually_exclusive add - ios_config parents works with lines by not src

* mutually_execlusive parents,src added to all other net modules

* tests for mutually_exclusive parents,src and whitespce removal
This commit is contained in:
bdowling 2018-01-03 09:47:12 -05:00 committed by Nathaniel Case
commit 552d1df901
18 changed files with 105 additions and 24 deletions

View file

@ -291,7 +291,8 @@ def main():
argument_spec.update(ce_argument_spec)
mutually_exclusive = [('lines', 'src')]
mutually_exclusive = [('lines', 'src'),
('parents', 'src')]
required_if = [('match', 'strict', ['lines']),
('match', 'exact', ['lines']),