I created a specific instance of the NicknameParser as a convenience: I worked with a colleague on a limited environment wherein he could not run a “awk -f swap-1-2.awk” to swap columns, and wasn’t getting results from the parser. To be honest, it took us both too long to realize that the simple WWPN/Nickname order was swapped to Nickname/WWPN.
I hate being surprised by software when there’s a deadline; as well, I like to cater to jet-lagged Application Engineers and anyone who “just wants to get the gig done”.
This adds a NicknameParser as a --nickname=file.csv;WWN=1;Nickname=0
but avoids having to explain that. This situation is common enough, this addition just helps get it done with very little drawback.
FibreChannel-Parsers added the SwappedNicknameParser; vitools includes a test case to ensure that the fcparsers.jar picked up during the build includes the convince feature.