mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 21:30:22 -07:00
junos implementation for net_l3_interface module (#26829)
* junos implementation for net_l3_interface module * junos_l3_interface implementation * junos_l3_interface integration test * net_l3_interface integration test for junos * Fix module name typo
This commit is contained in:
parent
e0e5b4cf64
commit
bf48364c72
17 changed files with 464 additions and 2 deletions
|
@ -311,7 +311,7 @@ def map_obj_to_ele(module, want, top, value_map=None):
|
|||
if value_map and fxpath in value_map:
|
||||
value = value_map[fxpath].get(value)
|
||||
|
||||
if value or tag_only or leaf_only:
|
||||
if (value is not None) or tag_only or leaf_only:
|
||||
ele = node
|
||||
if field_top:
|
||||
# eg: top = 'system/syslog/file'
|
||||
|
@ -336,7 +336,7 @@ def map_obj_to_ele(module, want, top, value_map=None):
|
|||
ele = ele_list[0]
|
||||
|
||||
tags = fxpath.split('/')
|
||||
if value:
|
||||
if value is not None:
|
||||
value = to_text(value, errors='surrogate_then_replace')
|
||||
|
||||
for item in tags:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue