That's not entirely accurate - Cisco open sourced VPP which they use in many products:
https://blogs.cisco.com/sp/a-bigger-helping-of-internet-plea...
While they still obviously make custom ASICs, they've moved towards more software where possible.
https://blogs.cisco.com/sp/a-bigger-helping-of-internet-plea...
While they still obviously make custom ASICs, they've moved towards more software where possible.