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:
Ganesh Nalawade 2017-07-15 12:38:44 +05:30 committed by GitHub
commit bf48364c72
17 changed files with 464 additions and 2 deletions

View file

@ -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: