nxos_config and nxos_pim_interface fix (#31343)
* fixes #31080 (#31081) (cherry picked from commit266c2f5831
) * nxos_config intended_config docfix (#31337) Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> (cherry picked from commit9f72b32c5d
)
This commit is contained in:
parent
13a86b649d
commit
ecce2f826f
2 changed files with 3 additions and 1 deletions
|
@ -227,7 +227,7 @@ EXAMPLES = """
|
|||
- name: diff the running-config against a provided config
|
||||
nxos_config:
|
||||
diff_against: intended
|
||||
intended: "{{ lookup('file', 'master.cfg') }}"
|
||||
intended_config: "{{ lookup('file', 'master.cfg') }}"
|
||||
|
||||
- nxos_config:
|
||||
lines:
|
||||
|
|
|
@ -298,12 +298,14 @@ def get_pim_interface(module, interface):
|
|||
pim_interface['hello_interval'] = str(hello_interval_msec)
|
||||
|
||||
border = get_data.get('is-border')
|
||||
border = border.lower() if border else border
|
||||
if border == 'true':
|
||||
pim_interface['border'] = True
|
||||
elif border == 'false':
|
||||
pim_interface['border'] = False
|
||||
|
||||
isauth = get_data.get('isauth-config')
|
||||
isauth = isauth.lower() if isauth else isauth
|
||||
if isauth == 'true':
|
||||
pim_interface['isauth'] = True
|
||||
elif isauth == 'false':
|
||||
|
|
Loading…
Reference in a new issue