# special qualifier '>addtype' for multi-to-one-to-multi mapping
# prefix type value to key to resolve the type
# typemerge | scopePattern | keyPattern | typeKey | nameKey | conffile | section-type-map
#
# prefix all dyn_nic_* to DHCP_dyn_nic_* etc.

###########################################################################
# qualifier | scope | key | conffile | section | sectionValue | key | valuemap
#
# qualifier:	debug		    ... just write debug output to stderr so that one knows this entry gets processed
# qualifier:	noclear		    ... conf section will not be cleared before update
# qualifier:	nodelimmap	    ... exclude this entry from the delimarr merge during reverse mapping
# qualifier:	ignore		    ... entry will not be written in fwd map
# qualifier:	ignoreempty	    ... entry will not be written in fwd map if value/content is empty
# qualifier:	seckey		    ... indicate value is section key name
# qualifier:	sectypekey	    ... indicate value is section key name with type prefix (see addtype)
# qualifier:	addseckey:KEY=VAL   ... add key to section
#                                   ... val can be $DBKEY (sample addseckey:mykey=$db_key) index is used !
# qualifier:	array2array  ... maps ng array into db list while preserving the index
# qualifier:	delimarr  ... indicate comma or colon separeted DB Value
# qualifier:	noindex   ... ignore key index 
# qualifier:	largeentry=TYPE   ... will prepend and append -----BEGIN TYPE----- xxx -----END TYPE-----
# qualifier:	resolvelist  ... resolve list with named sub entries
#                     resolve the list and create new entries with the type postfixed to the key
#                     sample testkey with value=abc^111,abc^222,def^333 wil generate the following key/values
#                            testkey_abc value 111,222
#                            testkey_def value 333
#
# qualifier:	resolvearray=[dbkey]  ... resolve entries with arrays as values
#                     sample (resolvearray)
#                            testkey with value=111,222,333 wil generate the following key/values
#                            testkey[0] value 111
#                            testkey[1] value 222
#                            testkey[2] value 333
#
#                     sample (resolvearray=my_name)
#                            myname[0] with value=hugo
#                            myname[1] with value=sepp
#                            testkey[0] with value=111,222
#                            testkey[1] with value=333,444 wil generate the following key/values
#                            hugo|testkey[0] value 111
#                            hugo|testkey[1] value 222
#                            sepp|testkey[0] value 333
#                            sepp|testkey[1] value 444
#
# qualifier:	splitlist=colon-separated-keylist  ... split a value with multiple entries into several key/value pairs
#						sampe splitlist=ip:mask:name
#						hugo=aa,bb,cc  --> hugo_ip=aa  hugo_mask=bb  hugo_name=cc
#
# qualifier:	splitlistdelimarr=colon-separated-keylist  ... same as splitlist but with a delimited array as value
#						sampe splitlistdelimarr=ip:mask:name
#						hugo=aa,bb,cc;gg,hh,ii --> hugo_ip[0]=aa  hugo_mask[0]=bb  hugo_name[0]=cc
#						                           hugo_ip[1]=gg  hugo_mask[1]=hh  hugo_name[1]=ii
#
# qualifier:	keyindex=keyindexstring  ... collect keys like wins1 wins2 into a single entry with a value list
#						sample keyindex=123
#						hugo1=aa hugo2=bb hugo3=cc ---> hugo = aa,bb,cc
#
# qualifier:    keymerge=colon-separated-keylist  ...collect keys like k1 k2 into a single entry with a value list
#                                               sample keymerge=abc:def for dbkey hugo
#                                               abc=aa def=bb ---> hugo = aa,bb
# qualifier:	mergedelim=CHAR			... use CHAR as delimiter when building merged lists (keymerge)
#
# qualifier:	clone=dbkey1:dbkey2:...  ... clone this instance to multiple new db key instances
#                                        sample clone=other_key1:yetanotherkey:totalotherkey
#
# qualifier:	cond:dbkey=pattern  ... entry will only be written if dbkey value matches pattern
#                                       scope, scope data and index are inherited from current entry
# qualifier:	replacetxt=<from>:<to>	... replace input text <from> with <to>
#
# qualifier:	instead=NEWVAL	... replace original value with NEWVAL in entry
#
# qualifier:	trim	... replace [\r\n\t] with "" in entry
#
# scope:		match scope in DB
#				optional condition: scope/scopedata
#				sample wifi_link/wifi3 as scope matches scope==wifi_link and scopeData==wifi3
# key:			match key in DB
# conffile:		conffile to put data in
# section:		section to put data in ($ notation: abc_$), a single '<' char means use unaltered sectionValue as section name
# sectionValue:	section instance name
#				%abc to use fixed name 'abc'
#				$KEYNAME to use value of DB key (same scope)
#				&KEYNAME to use value of DB key (same scope, non array; ignore index)
#				~KEYNAME to use value of DB key (same scope same scope data)
#				>INDEX to use index as section name
#				>SCOPEDATA to use DB scope data
# key:			target key in config file
#			to map to an delimited array put "[]" at the end of the key eg.:
#			|global|appid_exemptions_domains|servers/S1/services/NGFW/sslice.conf|||dstexecptions[]|
# valuemap:		yes=y,no=n  (value pairs for mapping)
#			>use:PREDEF to use predefined conversions 
#				mask2int 		255.255.255.0 -> 8
#                               int2mask 		8 -> 255.255.255.0
#                               addrmask2int 		10.0.0.0/255.255.0.0 -> 10.0.0.0/16
#                               addrint2mask		10.0.0.0/16 -> 10.0.0.0/255.255.0.0 
#								netaddr2phion		convert /24 to /8
#								cidraddr			extract address from CIDR
#								cidrintmask			extract mask as integer
#								cidrquadmask		extract mask in quad notation
#				sample >use:mask2int
###########################################################################
# operations
#
# >clearsection|conffile|secname		(clear a section before update)
#
# >ignore|dbkey         (ignores specified database key)
#
# >array2key|scope|keyprefix
#                       convert indexed entries into entries with keys with the index appended
#      sample >array2key|global|my_
#             |global| |my_abc[0]|val0
#             |global| |my_abc[1]|val1
#             |global| |my_def[0]|val2
#             |global| |my_def[1]|val3
#      converts to 
#             |global| |my_abc0|val0
#             |global| |my_abc1|val1
#             |global| |my_def0|val2
#             |global| |my_def1|val3
#
# >key2index|keyprefix|INDEXKEY1,INDEXKEY2,...
#		remove parts of a key and index the entry according to an 'index key'
#		the entry index is taken from a db key where the value matches the part stripped from the key
#		sample: key2index|CERTS_cert_|cert_serial,trusted_cert_serial
#			will change |global| |CERTS_cert_12345|-----
#			            |global| |CERTS_cert_66666|-----
#                       |global| |cert_serial[5]|12345
#                       |global| |trusted_cert_serial[7]|66666
#
#			to          |global| |CERTS_cert_cert_serial[5]|-----
#			            |global| |CERTS_cert_trusted_cert_serial[7]|-----
#                       |global| |cert_serial[5]|12345
#                       |global| |trusted_cert_serial[7]|66666
#
# >array2scope|keyprefix|keyforname
#		translate array to scopedata using a 'name' key
#		sample: array2scope|mytest_arr|mytest_name
#
#			global| |mytest_name[0]|myname0
#			global| |mytest_name[1]|myname1
#			global| |mytest_arr[0]|a,b,c,d
#			global| |mytest_arr[1]|g,h,j,k
#		will translate to
#			global| |mytest_name[0]|myname0
#			global| |mytest_name[1]|myname1
#			global|myname0|mytest_arr|a,b,c,d
#			global|myname1|mytest_arr|g,h,j,k
#
# >key2scope|keyprefix
#		move parts of a key to scope data
#		sample: >key2scope|CERTS_csr_
#			will change |global| |CERTS_csr_12345
#			to |global|12345|CERTS_csr_			(note: the underscore stays)
#
# >addkey|conffile|confsection|key|value	(unconditional all config key/value)
#
# >condaddkey|conffile|confsection|key|condition|true-value|false-value	(conditional all config key/value)
#		condition ... scope,scopedata,dbkey1=pattern1&scope,scopedata,dbkey2=pattern
#		a value >NONE indicates that no key is added at all
#		true-value/false-value ... may be db key whichs gets resolved (eg. $some_other_variable)
#
#       sample: >condaddkey|boxnet.conf|qqq|abc[1]|global,,mgmt_iface3=?*|wahr|>NONE
###########################################################################

