From 856bd60dadbd3be29ce804084e6c4222e48fb0eb Mon Sep 17 00:00:00 2001 From: Garfield Freeman Date: Thu, 22 Sep 2022 12:25:31 -0700 Subject: [PATCH] fix(panos.poli.security.Entry.SetDefault): No longer sets HipProfiles The hip-profiles schema node was removed somewhere around 10.1.5 or so. Not configuring it will omit it from the XML sent to PAN-OS. Fixes #93 --- poli/security/entry.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/poli/security/entry.go b/poli/security/entry.go index c47f55e1..c3e28a19 100644 --- a/poli/security/entry.go +++ b/poli/security/entry.go @@ -61,7 +61,6 @@ type Entry struct { // * SourceZones: ["any"] // * SourceAddresses: ["any"] // * SourceUsers: ["any"] -// * HipProfiles: ["any"] // * DestinationZones: ["any"] // * DestinationAddresses: ["any"] // * Applications: ["any"] @@ -90,10 +89,6 @@ func (o *Entry) Defaults() { o.SourceUsers = []string{"any"} } - if len(o.HipProfiles) == 0 { - o.HipProfiles = []string{"any"} - } - if len(o.DestinationAddresses) == 0 { o.DestinationAddresses = []string{"any"} }