From e859ff66074524b99529a83db6f8f1d58c639974 Mon Sep 17 00:00:00 2001 From: Brian Torres-Gil Date: Wed, 17 Jun 2020 14:58:49 -0700 Subject: [PATCH] feat: Add support for wildcard address objects 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. --- pandevice/objects.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandevice/objects.py b/pandevice/objects.py index f9c06fcf..4ac386f3 100644 --- a/pandevice/objects.py +++ b/pandevice/objects.py @@ -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 @@ -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}", ) )