net/bnxt: add conditional processing of templates