sonic-buildimage/src/sonic-config-engine
Tamer Ahmed f9edf6e5cc
[cfggen] Extend Template Argument to Support Batch Mode (#4941)
Calls to cfggen take considerable time. With batch mode, we will have the ability
to reduce number of calls from services.

Example of the batch mode command:
sonic-cfggen -t template-1.j2 -t template-2.j2,config-db -t template-3.j2,config-db -t template-4.j2,file1 -t template-5.j2,file2 --write-to-db.

template-1.j2 will be rendered to stdout since it is missing the dest part. stdout is default
config-db is a special keyword that will inject the rendered template into internal data structure. The internal data structure gets written to redis-db with --write-to-db switch. In the case the user would like to write to a file named config-db, it could be given as /config-db or ./config-db

signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
2020-08-12 15:13:06 -07:00
..
data [config-engine]: Add admin_status up to l2switch.json template (#3210) 2019-07-24 09:45:24 -07:00
tests [cfggen] Extend Template Argument to Support Batch Mode (#4941) 2020-08-12 15:13:06 -07:00
.gitignore [bgpcfgd]: Split one bgp mega-template to chunks. (#4143) 2020-04-23 09:42:22 -07:00
config_samples.py [config engine] For l2 preset, use admin_status: up by default (#3902) 2019-12-13 14:30:52 -08:00
lazy_re.py [sonic-cfggen] optimize sonic-cfggen startup (#3658) 2019-10-31 09:17:29 -07:00
MANIFEST.in [config/acl] Support everflow config translation (#468) 2017-04-07 01:10:05 -07:00
minigraph.py Bring up all neighbor ports in DeviceInterfaceLinks (#5071) 2020-08-11 07:29:33 -07:00
openconfig_acl.py Remove extra trailing newlines at EOF (#804) 2017-07-12 20:54:37 -07:00
portconfig.py [buildImage] Add support of platform.json parsing to portconfig.py file (#3909) 2020-06-18 16:26:09 -07:00
redis_bcc.py [sonic-cfggen] optimize sonic-cfggen startup (#3658) 2019-10-31 09:17:29 -07:00
setup.py [sonic-config-engine] Remove sonic_device_util.py (#5130) 2020-08-09 21:26:54 -07:00
sonic-cfggen [cfggen] Extend Template Argument to Support Batch Mode (#4941) 2020-08-12 15:13:06 -07:00