Skip to content

Commit

Permalink
fix(panos.poli.security.Entry.SetDefault): No longer sets HipProfiles
Browse files Browse the repository at this point in the history
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 PaloAltoNetworks#93
  • Loading branch information
shinmog committed Sep 22, 2022
1 parent 774bc77 commit 856bd60
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions poli/security/entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ type Entry struct {
// * SourceZones: ["any"]
// * SourceAddresses: ["any"]
// * SourceUsers: ["any"]
// * HipProfiles: ["any"]
// * DestinationZones: ["any"]
// * DestinationAddresses: ["any"]
// * Applications: ["any"]
Expand Down Expand Up @@ -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"}
}
Expand Down

0 comments on commit 856bd60

Please sign in to comment.