Skip to content

Commit

Permalink
feat: Add support for wildcard address objects
Browse files Browse the repository at this point in the history
Added ip-wildcard as a type in the AddressObject PanObject

PR #228
Closes #226 

I chose not to use a version profile for this parameter because the user will get an error on pre-9.0 versions either way. For example, there's no reason to omit the ip-wildcard on 8.1 because that AddressObject would be invalid anyway.
  • Loading branch information
btorresgil authored Jun 17, 2020
1 parent 50c8480 commit e859ff6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandevice/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class AddressObject(VersionedPanObject):
type (str): Type of address:
* ip-netmask (default)
* ip-range
* ip-wildcard (added in PAN-OS 9.0)
* fqdn
description (str): Description of this object
tag (list): Administrative tags
Expand All @@ -61,7 +62,7 @@ def _setup(self):
VersionedParamPath(
"type",
default="ip-netmask",
values=["ip-netmask", "ip-range", "fqdn"],
values=["ip-netmask", "ip-range", "ip-wildcard", "fqdn"],
path="{type}",
)
)
Expand Down

0 comments on commit e859ff6

Please sign in to comment.