Juniper / junos-terraform

Apache License 2.0
70 stars 24 forks source link

show | compare > output values #31

Open cdot65 opened 2 years ago

cdot65 commented 2 years ago

Is there a mechanism to have a "show | compare rollback 1" redirected to a Terraform output value?

This would enable the administrator to print out the changes made by their terraform apply

aaronchar commented 2 years ago

@cdot65 - I have this working in a local branch. It requires a change to the upstream go-netconf library which I can submit a PR for.

It's run as part the read operation after the commit is completed and used as a normal Terrafrom resource output

output "testing" {
  value = junos-qfx_commit.commit-main
}
image