localhost.localdomain shows up in show config diff

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

localhost.localdomain shows up in show config diff

L1 Bithead

If I enter config changes, set the cli config output to set and compare with running config, it seems I get some extra keywords in my output. The output line does not work to repaste back into the cli, creating extra steps to generate a "patch" config to apply later and not disrupt interim chnages (as long as they don't directly conflict)

 

example:

testpanoadmin@Panorama# set device-group East-West pre-rulebase security rules SOME_TEST_RULE from any to any service service-https action allow

[edit]
testpanoadmin@Panorama# run set cli config-output-format set
[edit]
testpanoadmin@Panorama# run show config diff
set config devices localhost.localdomain device-group East-West pre-rulebase security rules EW-AllowAll action allow
set config devices localhost.localdomain device-group East-West pre-rulebase security rules EW-AllowAll log-start yes
set config devices localhost.localdomain device-group East-West pre-rulebase security rules EW-AllowAll log-end yes
+set config devices localhost.localdomain device-group East-West pre-rulebase security rules SOME_TEST_RULE from any
+set config devices localhost.localdomain device-group East-West pre-rulebase security rules SOME_TEST_RULE to any
+set config devices localhost.localdomain device-group East-West pre-rulebase security rules SOME_TEST_RULE service service-https
+set config devices localhost.localdomain device-group East-West pre-rulebase security rules SOME_TEST_RULE action allow

 

The "config devices localhost.localdomain" causes a syntax error if I were to try to paste it back in.

 

testpanoadmin@Panorama# revert config

All changes were reverted from configuration

[edit]
testpanoadmin@Panorama# set config devices localhost.localdomain device-group East-West pre-rulebase security rules SOME_TEST_RULE from any

Invalid syntax.
[edit]
testpanoadmin@Panorama#

 

I think this is some artifact of the API call that happens behind the scenes, but is there any way to suppress this from the normal CLI? 

 

0 REPLIES 0
  • 222 Views
  • 0 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!