Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #413 from PaloAltoNetworks/develop
Browse files Browse the repository at this point in the history
Release 2.2.3
  • Loading branch information
shinmog authored Jul 9, 2019
2 parents ad1ca6f + 9201ac2 commit 6da2d7b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
10 changes: 10 additions & 0 deletions docs/history.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
Release History
===============

V2.2.3
------

- *Released*: 2019-07-09

Bug fixes:

* Fixed `create_default_route` handling with both `panos_interface`
and `panos_l3_subinterface`

V2.2.2
------

Expand Down
9 changes: 8 additions & 1 deletion library/panos_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,17 @@ def main():
'ipv4_mss_adjust': module.params['ipv4_mss_adjust'],
'ipv6_mss_adjust': module.params['ipv6_mss_adjust'],
'enable_dhcp': True if module.params['enable_dhcp'] else None,
'create_dhcp_default_route': True if module.params['create_default_route'] else None,
# 'create_dhcp_default_route': set below
'dhcp_default_route_metric': module.params['dhcp_default_route_metric'],
}

if module.params['create_default_route']:
spec['create_dhcp_default_route'] = True
elif spec['enable_dhcp']:
spec['create_dhcp_default_route'] = False
else:
spec['create_dhcp_default_route'] = None

# Get other info.
state = module.params['state']
zone_name = module.params['zone_name']
Expand Down
9 changes: 8 additions & 1 deletion library/panos_l3_subinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,17 @@ def main():
'ipv4_mss_adjust': module.params['ipv4_mss_adjust'],
'ipv6_mss_adjust': module.params['ipv6_mss_adjust'],
'enable_dhcp': True if module.params['enable_dhcp'] else None,
'create_dhcp_default_route': True if module.params['create_default_route'] else None,
# 'create_dhcp_default_route': set below
'dhcp_default_route_metric': module.params['dhcp_default_route_metric'],
}

if module.params['create_default_route']:
spec['create_dhcp_default_route'] = True
elif spec['enable_dhcp']:
spec['create_dhcp_default_route'] = False
else:
spec['create_dhcp_default_route'] = None

# Get other info.
state = module.params['state']
zone_name = module.params['zone_name']
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='ansible-pan',
version='2.2.2',
version='2.2.3',
packages=['library'],
# The project's main homepage.
url='https://github.com/PaloAltoNetworks/ansible-pan',
Expand Down

0 comments on commit 6da2d7b

Please sign in to comment.