Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can we push from panorama to firewalls? #114

Open
ciriarte opened this issue Feb 29, 2024 · 2 comments
Open

How can we push from panorama to firewalls? #114

ciriarte opened this issue Feb 29, 2024 · 2 comments

Comments

@ciriarte
Copy link

Documentation link

https://github.com/PaloAltoNetworks/pango/blob/master/README.md

Describe the problem

We see the example go script to commit in Panos Terraform provider, but we don't see a way to push from Panorama to the devices.

Suggested fix

Either show an example or clearly state this is not supported.

@shinmog
Copy link
Collaborator

shinmog commented Mar 11, 2024

What are you looking to push? Many things can be pushed from Panorama to a NGFW. There is not enough detail in this to give any kind of helpful information.

@heal01
Copy link

heal01 commented Mar 27, 2024

Hi @shinmog

We are using Terraform to manage everything on the firewalls that you can manage via TF. Before we pushed it directly to the FWs but now we start to use Panorama and try to do the same thing but I'm not getting it to work. I'm not a GO expert so I'm probably missing something.
I'm able to Commit it to Panorama but not push it to the devices. I agree that the documentation on how to do this is not very clear.
I have tried with PanoramaCommit and PanoramaCommitAll but both of them are just committing to Panorama. I must then push it via the web gui to the devices.

// Build the commit to be performed.
cmd := commit.PanoramaCommitAll{
	Description:         "test",
	Name:                "testgroup",
	Type:                "DeviceGroup",
	IncludeTemplate:     true,
	ForceTemplateValues: false,
	Devices:             []string{"testfw1", "testfw2"},
}

sd := time.Duration(sleep) * time.Second

// Perform the commit
jobId, _, err = panorama.Commit(cmd, "commit-all", nil)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants