Another issue was discovered in that Cisco “show zones” command is giving results such as:
zone name z23_test44 vsan 300 pwwn 10:00:00:00:c9:12:34:56 [realalias] pwwn 10:00:00:00:c9:12:34:57 [otheralias]
Lacking the fcalias, this confused the Show Zone parser (Revision 657 – Cisco Show Zone), in a way slightly different than in Revision 674 – Dupe Alias in Show Zone. There’s no ambiguity between two nicknames or aliases, but the parser wasn’t picking up all possible pawn lines (i.e. reporting 10:00:00:00:c9:12:34:56,realalias
but not reporting 10:00:00:00:c9:12:34:57,otheralias
.
This was resolved by creating an additional parser with more code paths in the ShowZone2Parser to collect all subparts of a zone into the zone after the section is complete, and to collect all parts into each fcalias as a new fcalias was found or the zone is completed.
There’s still a few caveats to chase down, as noted on that class’s description.
A test case was added to this project to confirm the problem is resolved going forward.