Releases: netdevops/hier_config
Releases · netdevops/hier_config
v3.1.1
v3.1.0
v3.0.0
v2.3.0
v2.2.3
v2.2.2
v2.2.1
What's Changed
- rm overmatching tacacs-server idempotency rule for nxos by @aedwardstx in #105
Full Changelog: v2.2.0...v2.2.1
v2.2.0
What's Changed
- documentation updates by @jtdub in #97
- update docs by @jtdub in #98
- Future config by @aedwardstx in #99
Full Changelog: v2.1.0...v2.2.0
v2.1.0
Enhancements and Fixes:
- Unified diff #95
- Add add_children_deep() to add nested children easily
- Add unified_diff() …
- difflib.unified_diff offers a handy way to review the differences of two configuration files although it has a shortcoming for networking use cases. It presents a diff when commands are in a different order which is mostly irrelevant to network device configs, outside of ACLs, but they typically have sequence numbers. This version ignores order.
In [1]: list(running_config.unified_diff(generated_config))
Out[1]:
['vlan 3',
' - name switch_mgmt_10.0.4.0/24',
' + name switch_mgmt_10.0.3.0/24',
'interface Vlan2',
' - shutdown',
' + mtu 9000',
' + ip access-group TEST in',
' + no shutdown',
'interface Vlan3',
' - description switch_mgmt_10.0.4.0/24',
' - ip address 10.0.4.1 255.255.0.0',
' + description switch_mgmt_10.0.3.0/24',
' + ip address 10.0.3.1 255.255.0.0',
'+ vlan 4',
' + name switch_mgmt_10.0.4.0/24',
'+ interface Vlan4',
' + mtu 9000',
' + description switch_mgmt_10.0.4.0/24',
' + ip address 10.0.4.1 255.255.0.0',
' + ip access-group TEST in',
' + no shutdown']
- Exclude tags fix and other fixes #94
- HConfig objects should be true regardless of if they have children …
- This enables usages like
if config.get_child("equals", "x")
- This enables usages like
- Ignore acl sequence numbers in difference()
- Closes #92 …
- Fixes issue with all_children_sorted_by_tags where there would be stranded child lines without a parent under certain situations where exclude_tags were specified.
- only do children_dict/equals lookup when the expression is a str
- only append tags if child.is_leaf under add_shallow_copy_of()
- Better handling for empty banners
- closes #85
- HConfig objects should be true regardless of if they have children …