cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5510
Views
5
Helpful
1
Replies

IOS XR - How to show the complete changes before commit?.

mascapolla
Level 1
Level 1

In IOS XR, there are a command to see the full changes before commit?. For example:

RP/0/0/CPU0:INET#show running-config prefix-set MYPREFIX
Mon Oct 24 15:06:16.288 ARBUE
prefix-set MYPREFIX
  10.0.0.0/8 le 32,
  172.16.0.0/12 le 32,
  192.168.0.0/16 le 32
end-set
RP/0/0/CPU0:INET#configure terminal
Mon Oct 24 15:06:30.427 ARBUE
RP/0/0/CPU0:INET(config)#no prefix-set MYPREFIX
RP/0/0/CPU0:INET(config)#show configuration
Mon Oct 24 15:06:38.767 ARBUE
Building configuration...
!! IOS XR Configuration 6.1.1
!
no prefix-set MYPREFIX
end

But I want to see the complete contents of the prefix-set before commit, something like this:

RP/0/0/CPU0:INET(config)#show configuration ???????
no prefix-set MYPREFIX
! 10.0.0.0/8 le 32,
! 172.16.0.0/12 le 32,
! 192.168.0.0/16 le 32
!end-set

Same for route-policy and for BGP neighbors. Thanks.

1 Accepted Solution

Accepted Solutions

You can get a diff of the changes, like this:

lab01(config)#no prefix-set MYPREFIX
lab01(config)#show commit changes diff
Wed Oct 26 15:56:21.322 CEST
Building configuration...
!! IOS XR Configuration 5.3.4
!
- prefix-set MYPREFIX
- 10.0.0.0/8 le 32,
- 172.16.0.0/12 le 32,
- 192.168.0.0/16 le 32
- end-set
end

View solution in original post

1 Reply 1

You can get a diff of the changes, like this:

lab01(config)#no prefix-set MYPREFIX
lab01(config)#show commit changes diff
Wed Oct 26 15:56:21.322 CEST
Building configuration...
!! IOS XR Configuration 5.3.4
!
- prefix-set MYPREFIX
- 10.0.0.0/8 le 32,
- 172.16.0.0/12 le 32,
- 192.168.0.0/16 le 32
- end-set
end