Skip to content

Commit 31eb2a6

Browse files
committed
fix(panos.policies.SecurityRule): Param hip_profiles is actually removed in PAN-OS 10.0
1 parent ef8c9fc commit 31eb2a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

panos/policies.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ class SecurityRule(VersionedPanObject):
311311
tozone (list): To zones
312312
source (list): Source addresses
313313
source_user (list): Source users and groups
314-
hip_profiles (list): (PAN-OS 10.1.4-) GlobalProtect host integrity profiles
314+
hip_profiles (list): (PAN-OS 10.0.0-) GlobalProtect host integrity profiles
315315
destination (list): Destination addresses
316316
application (list): Applications
317317
service (list): Destination services (ports) (Default:
@@ -388,12 +388,12 @@ def _setup(self):
388388
)
389389
)
390390

391-
# 10.1.5 drops support for hip-profiles,
391+
# 10.0.0 drops support for hip-profiles,
392392
# so we want to make sure we don't include it in the request
393393
# body that we send to the api
394394
for param in params:
395395
if param.name == "hip_profiles":
396-
param.add_profile("10.1.5", exclude=True)
396+
param.add_profile("10.0.0", exclude=True)
397397
break
398398

399399
params.append(

0 commit comments

Comments
 (0)