cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6869
Views
15
Helpful
6
Replies

Cisco IOS XR Remove comment

debottym2
Level 1
Level 1

Folks,

 

Any idea how to remove this from the config?

 

router isis backbone
 set-overload-bit on-startup 180
 is-type level-2-only
 ! ISIS network number should be encoded with 0-padded loopback IP
 ! example:
 ! example:

 net 49.0001.1921.2022.0222.00

 

I tried this, but to no avail...

RP/0/RSP0/CPU0:edge1(config)#clear comm
comment  community-set  
RP/0/RSP0/CPU0:edge1(config)#router isis backbone
RP/0/RSP0/CPU0:edge1(config-isis)#clear comment
RP/0/RSP0/CPU0:edge1(config-isis)# ! ISIS network number should be encoded with 0-padded loopback IP

 

 

 

 

1 Accepted Solution

Accepted Solutions

smilstea
Cisco Employee
Cisco Employee

Hi,

 

It looks like you are hitting CSCum68626

 

Symptom:
The IOS-XR parser allows comments (Begun with !) to be added to an ACLs, interfaces etc.

They appear before the ACL, interface etc. in the 'show running-config' output and there is no way to remove the comments, unless you remove and reapply the associated ACL, interface etc.

Conditions:

Workaround:
Remove section of configuration, commit the changes and reapply without the comment.

<B>Further Problem Description:</B>

 

 

Unfortunately due to the nature of the issue we will be unable to fix it, we would have to do a major overhaul of our parser in order to fix the issue.

 

Thanks,

Sam

View solution in original post

6 Replies 6

smilstea
Cisco Employee
Cisco Employee

Hi,

 

It looks like you are hitting CSCum68626

 

Symptom:
The IOS-XR parser allows comments (Begun with !) to be added to an ACLs, interfaces etc.

They appear before the ACL, interface etc. in the 'show running-config' output and there is no way to remove the comments, unless you remove and reapply the associated ACL, interface etc.

Conditions:

Workaround:
Remove section of configuration, commit the changes and reapply without the comment.

<B>Further Problem Description:</B>

 

 

Unfortunately due to the nature of the issue we will be unable to fix it, we would have to do a major overhaul of our parser in order to fix the issue.

 

Thanks,

Sam

Wanted to add a few more things to this. I didn't accept the close of this ddts and want to see it fixed.

A sw solution is beng worked on for this problem. Next time you check you'll see the DDTS in a non close state.

Although the workaround to remove the associated config portion is doable, it is not ultimate.

More to follow on this.

regards

xander

Thank you Xander. I would agree that removing ISIS in order to remove some comment lines is not ideal! :)

Xander,

Just wondering if this was ever resolved.  We are seeing this behavior on our ASR9K's running 5.3.1.

 

-Marc Russo
 

yup it is, here is how to:

 

"Clear comment" CLI helps to Clear the comment from config line (to be entered next)

RP/0/0/CPU0:ios(config-if)#do show run
Fri May 22 12:04:24.186 IST
Building configuration...
!! IOS XR Configuration 0.0.0
!! Last configuration change at Fri May 22 12:04:18 2015 by UNKNOWN
!
logging console debugging
!comment for intf
interface GigabitEthernet0/0/0/0
 !commemt for mtu
 mtu 100
 shutdown
!
!comment support for Gig interface
interface GigabitEthernet0/0/0/1
 !Mtu comment
 mtu 123
 shutdown
!
interface GigabitEthernet0/0/0/2
 shutdown
!
interface GigabitEthernet0/0/0/3
 shutdown
!
interface GigabitEthernet0/0/0/4
 shutdown
!
router pim
 address-family ipv4
  interface GigabitEthernet0/1/0/24
   enable
  !
 !
!
end

RP/0/0/CPU0:ios(config-if)#clear comment ?
  <cr>  Clear the comment from config line (to be entered next)
RP/0/0/CPU0:ios(config-if)#clear comment
RP/0/0/CPU0:ios(config-if)#mtu 100
RP/0/0/CPU0:ios(config-if)#commit
Fri May 22 12:05:08.201 IST
RP/0/0/CPU0:May 22 12:05:08.315 : config[66191]: %MGBL-CONFIG-6-DB_COMMIT : Configuration committed by user 'UNKNOWN'. Use 'show configuration commit changes 1000000005' to view the changes.
RP/0/0/CPU0:ios(config-if)#do sh run
Fri May 22 12:05:13.939 IST

Building configuration...
!! IOS XR Configuration 0.0.0
!! Last configuration change at Fri May 22 12:05:08 2015 by UNKNOWN
!
logging console debugging
!comment for intf
interface GigabitEthernet0/0/0/0
 mtu 100
 shutdown
!
!comment support for Gig interface
interface GigabitEthernet0/0/0/1
 !Mtu comment
 mtu 123
 shutdown
!
interface GigabitEthernet0/0/0/2
 shutdown
!
interface GigabitEthernet0/0/0/3
 shutdown
!
interface GigabitEthernet0/0/0/4
 shutdown
!
router pim
 address-family ipv4
  interface GigabitEthernet0/1/0/24
   enable
  !
 !
!
end

RP/0/0/CPU0:ios(config-if)#exit
RP/0/0/CPU0:ios(config)#clear
RP/0/0/CPU0:ios(config)#clear comment
RP/0/0/CPU0:ios(config)#interface GigabitEthernet0/0/0/0
RP/0/0/CPU0:ios(config-if)#
RP/0/0/CPU0:ios(config-if)#commit
Fri May 22 12:05:34.642 IST
RP/0/0/CPU0:May 22 12:05:34.750 : config[66191]: %MGBL-CONFIG-6-DB_COMMIT : Configuration committed by user 'UNKNOWN'. Use 'show configuration commit changes 1000000006' to view the changes.
RP/0/0/CPU0:ios(config-if)#do sh run
Fri May 22 12:05:36.945 IST
Building configuration...
!! IOS XR Configuration 0.0.0
!! Last configuration change at Fri May 22 12:05:34 2015 by UNKNOWN
!
logging console debugging
interface GigabitEthernet0/0/0/0
 mtu 100
 shutdown
!
!comment support for Gig interface
interface GigabitEthernet0/0/0/1
 !Mtu comment
 mtu 123
 shutdown
!
interface GigabitEthernet0/0/0/2
 shutdown
!
interface GigabitEthernet0/0/0/3
 shutdown
!
interface GigabitEthernet0/0/0/4
 shutdown
!
router pim
 address-family ipv4
  interface GigabitEthernet0/1/0/24
   enable
  !
 !
!
end

RP/0/0/CPU0:ios(config-if)#root
RP/0/0/CPU0:ios(config)#clear comment
RP/0/0/CPU0:ios(config)#interface GigabitEthernet0/0/0/1
RP/0/0/CPU0:ios(config-if)#commit
Fri May 22 12:05:54.630 IST
RP/0/0/CPU0:May 22 12:05:54.765 : config[66191]: %MGBL-CONFIG-6-DB_COMMIT : Configuration committed by user 'UNKNOWN'. Use 'show configuration commit changes 1000000007' to view the changes.
RP/0/0/CPU0:ios(config-if)#do show run
Fri May 22 12:06:00.620 IST
Building configuration...
!! IOS XR Configuration 0.0.0
!! Last configuration change at Fri May 22 12:05:54 2015 by UNKNOWN
!
logging console debugging
interface GigabitEthernet0/0/0/0
 mtu 100
 shutdown
!
interface GigabitEthernet0/0/0/1
 !Mtu comment
 mtu 123
 shutdown
!
interface GigabitEthernet0/0/0/2
 shutdown
!
interface GigabitEthernet0/0/0/3
 shutdown
!
interface GigabitEthernet0/0/0/4
 shutdown
!
router pim
 address-family ipv4
  interface GigabitEthernet0/1/0/24
   enable
  !
 !
!
end

RP/0/0/CPU0:ios(config-if)#root
RP/0/0/CPU0:ios(config)#interface GigabitEthernet0/0/0/1
RP/0/0/CPU0:ios(config-if)#clear comment
RP/0/0/CPU0:ios(config-if)#mtu 123
RP/0/0/CPU0:ios(config-if)#commit
Fri May 22 12:06:19.356 IST
RP/0/0/CPU0:May 22 12:06:19.481 : config[66191]: %MGBL-CONFIG-6-DB_COMMIT : Configuration committed by user 'UNKNOWN'. Use 'show configuration commit changes 1000000008' to view the changes.
RP/0/0/CPU0:ios(config-if)#do show run
Fri May 22 12:06:21.332 IST
******Nvgen cliend pid: 6833 spawned by pid 25231***********
Building configuration...
!! IOS XR Configuration 0.0.0
!! Last configuration change at Fri May 22 12:06:19 2015 by UNKNOWN
!
logging console debugging
interface GigabitEthernet0/0/0/0
 mtu 100
 shutdown
!
interface GigabitEthernet0/0/0/1
 mtu 123
 shutdown
!
interface GigabitEthernet0/0/0/2
 shutdown
!
interface GigabitEthernet0/0/0/3
 shutdown
!
interface GigabitEthernet0/0/0/4
 shutdown
!
router pim
 address-family ipv4
  interface GigabitEthernet0/1/0/24
   enable
  !
 !
!
end

RP/0/0/CPU0:ios(config-if)#

xander

debottym2
Level 1
Level 1

Thank you Sam. I removed the net id and reapplied it, which happened to resolve my issue.