Subject: | IOS Indentation bug |
Hi,
Fairly recent IOSes (tested with 12.2(15)T2 and 12.3(1)) do not indent correctly.
Here is an example:
***********************************
!
controller T1 3/1
framing esf
clock source internal
linecode b8zs
description to abc
!
class-map match-all testclass
match mpls experimental topmost 1
[...]
class-map match-all othertestclass
match mpls experimental topmost 5
!
!
policy-map mypolicymap
class othertestclass
priority percent 20
***********************************
classmap is certainly not nested in controller T1 3/1.
Just like policy-map is not nested in class-map.
However, the IOS configuration file keeps a nasty initial space...
Line 93 of the Reconfig.pm just dies when it this situation is met, which makes a lot of sense (not supposed to happen!).
It might be relevant to die with a message notifying that the configuration is invalid.
It would be cool to correct the situation on the fly and do "as if" everything was shifted by one space character.
Cisco has not release a bug ID on that one yet.