Connection of shelves via FC switches is supported only in fabric MetroCluster, in which case you need 4 (not 2) switches, only specific models with specific firmware versions are supported and there is precise step by step procedure how switches are configured.
Anything else may work but definitely does not agree with “best practice” ☺
Could you be more specific what you attempt to do?