As for software, there are many vendors and open source projects that make complete distributions for these generic switches/chipsets.
One way to get an idea of the sheer number of devices in play here is to look at the hardware supported by ONIE, a small Linux distribution that is a de facto standard bootloader for these. Can't find a proper HCL for ONIE, but have a look at the source: https://github.com/opencomputeproject/onie/tree/master/machi... The number of models is staggering.
So what your friend does is clever as a business, but not necessarily even high tech or technically hard, nor does it need special connections. It's just a huge market, there for anyone to build a reseller business around.