programmable layer-2 network