The commit "[dockers] Remove dependency to minigraph" breaks the support of old minigraphs which do not have neighbors listed in section <Devices>.
Option "-m" for sonic-cfggen helped to generate empty DEVICE_NEIGHBOR_METADATA. Without it it is not generated and buffers configuration template fails.
New minigraphs work ok.