Skip to main content

Templates: repeat instances

Use templates when a configuration has many similar instances: the doors of a platform, the machines of a line, the tanks of a farm. You write the instance one time, as a template. An - expand: entry of instances: uses the template as many times as necessary.

The gateway expands the templates before it loads the configuration. The result is a flat configuration, the same as a configuration that you write by hand. The gateway checks each generated entry with the schema, the same as a hand-written entry.

To see the flat result, run opcua-omni-edge dump-config <config.yaml>.

Words on this page​

WordMeaning
templateA named group of entries in templates:. Its strings can contain expressions.
expand blockThe value of an expand: key. It uses templates and makes entries.
paramA value that a template gets from the block that uses it.
counterA value that increases each time a template takes it: 01, 02, 03.
indexThe position of an iteration: 0, 1, 2. An index is a counter that increases one time for each iteration.
recordOne set of param values: one item of over:, or one row of a table.
expressionThe text in ${…}. The expander replaces it with its value.
expanded configurationThe configuration after the expander replaced every template.

How to repeat an instance​

  1. Add templates: at the top level of the configuration.
  2. Give the template a name, for example Pump.
  3. Declare the params of the template in params:.
  4. Write the entries of the template in instances:. Use ${id} where the value of the param id must go. Use ${parent} for the parent.
  5. In instances:, add an entry with the key expand:.
  6. In the expand block, set parent:, and set use: to the name of the template.
  7. Give the values of the params: with: for one use, or over: for one use for each record.
  8. Run opcua-omni-edge dump-config <config.yaml> and examine the result.

The gateway expands the templates before it loads the configuration. The sample below does this:

Sample 01-one-template. This sample shows the smallest template. The template Pump has one param, id. The - expand: entry uses the template one time, with id: P101. The expanded configuration has the hand-written entry and one generated entry. Use this form to give a name to a group of entries.

# Sample 01 - one template, used once.
# A template is a named group of entries. An `- expand:` entry uses it.
templates:
Pump: # The template name. Use it in `use:`.
params:
id: { type: string } # A param without a default is required.
instances:
- browseName: "${id}" # ${id} is replaced by the value of the param.
typeDefinition: ua:BaseObjectType
componentOf: "${parent}" # ${parent} is the `parent:` of the block.

instances:
- browseName: Plant # A hand-written entry stays as it is.
typeDefinition: ua:BaseObjectType
organizedBy: /ua:Objects
- expand:
parent: /ua:Objects/own:Plant # The parent of the generated entries.
with: { id: P101 } # The values for the params of the template.
use: Pump # The template to use.
The expanded configuration
instances:
- browseName: Plant
typeDefinition: ua:BaseObjectType
organizedBy: /ua:Objects
- browseName: P101
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Plant

How to number the instances​

  1. Declare a counter in counters: of the expand block: door: { start: 1, format: "00" }.
  2. In the template, add counter: { door: n }. Each use of the template takes the next value of the counter as the param n.
  3. Use ${n} in the names: Door${n} gives Door01, Door02.
  4. To calculate with the value, use $number(n): DB${100 + $number(n)} gives DB101.

A counter with a format gives text: "01". A counter without a format gives a number: 1. A counter lives in its expand block, and in the blocks in that block. Another block with a counter of the same name starts again at start.

Sample 03-counter-with-format. This sample shows a counter with a format. The template Sensor takes the next value of the counter sensor each time the block uses it. The format "000" gives three digits: 001, 002 and 003. After the sensors, ${sensor.count} is 3 and ${sensor.last} is "003". Use $number(n) when you must calculate with a formatted value.

# Sample 03 - a counter with a format.
# A counter gives the next value each time a template takes it.
# With `format: "000"`, the value is text with zeros on the left: "001", "002"...
templates:
Sensor:
counter: { sensor: n } # Take the next value of the counter `sensor` as the param n.
instances:
- browseName: "TT${n}" # TT001, TT002, TT003
dataType: ua:Double
componentOf: "${parent}"
Summary:
params:
total: { type: number }
lastName: { type: string }
instances:
- browseName: SensorCount
dataType: ua:UInt32
componentOf: "${parent}"
- browseName: LastSensor
dataType: ua:String
componentOf: "${parent}"
initializers:
- variable: "${parent}/own:SensorCount"
value: "${total}" # The whole field is one ${...}: the value stays a number.
- variable: "${parent}/own:LastSensor"
value: "TT${lastName}" # Text around ${...}: the value is text.

instances:
- browseName: Tank
typeDefinition: ua:BaseObjectType
organizedBy: /ua:Objects
- expand:
parent: /ua:Objects/own:Tank
counters:
sensor: { start: 1, format: "000" } # The counter lives in this block only.
layout: # The entries of the layout are used in order.
- { use: Sensor, repeat: 3 }
# After the sensors, `sensor.count` is 3 and `sensor.last` is "003".
- { use: Summary, with: { total: "${sensor.count}", lastName: "${sensor.last}" } }
The expanded configuration
instances:
- browseName: Tank
typeDefinition: ua:BaseObjectType
organizedBy: /ua:Objects
- browseName: TT001
dataType: ua:Double
componentOf: /ua:Objects/own:Tank
- browseName: TT002
dataType: ua:Double
componentOf: /ua:Objects/own:Tank
- browseName: TT003
dataType: ua:Double
componentOf: /ua:Objects/own:Tank
- browseName: SensorCount
dataType: ua:UInt32
componentOf: /ua:Objects/own:Tank
- browseName: LastSensor
dataType: ua:String
componentOf: /ua:Objects/own:Tank
initializers:
- variable: /ua:Objects/own:Tank/own:SensorCount
value: 3
- variable: /ua:Objects/own:Tank/own:LastSensor
value: TT003

How to repeat a block​

Use repeat: for a number of iterations. Use index: to give each iteration a value.

Sample 02-repeat-with-index. This sample shows repeat: and index:. The block makes four entries, one for each iteration. The index slot starts at 1 and increases by 1. Use index: { name: slot, start: 0, step: 8 } for the values 0, 8, 16 and 24. Use index: { name: slot, in: [1, 2, 4, 8] } for a list of values.

# Sample 02 - repeat a block, with an index.
# `repeat:` gives the number of iterations. `index:` gives each iteration a value.
instances:
- browseName: Rack
typeDefinition: ua:BaseObjectType
organizedBy: /ua:Objects
- expand:
parent: /ua:Objects/own:Rack
repeat: 4 # Four iterations.
index: { name: slot, start: 1 } # slot is 1, 2, 3, 4. Without `start`, it starts at 0.
instances: # A block can hold entries directly, without a template.
- browseName: "Slot${slot}"
typeDefinition: ua:BaseObjectType
componentOf: "${parent}"
nodeId: "s=Rack-Slot${slot}"
The expanded configuration
instances:
- browseName: Rack
typeDefinition: ua:BaseObjectType
organizedBy: /ua:Objects
- browseName: Slot1
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Rack
nodeId: s=Rack-Slot1
- browseName: Slot2
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Rack
nodeId: s=Rack-Slot2
- browseName: Slot3
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Rack
nodeId: s=Rack-Slot3
- browseName: Slot4
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Rack
nodeId: s=Rack-Slot4

How to repeat a sequence of templates​

A template can be a list of template names. This is a module. Use the module in a layout: entry with repeat:.

Sample 04-module-in-a-repeat. This sample shows a module. The template Bay is a list of three template names. The layout uses one door, two bays and one door. Each type has its own counter, so the doors are Door01 to Door04 and the windows are Window01 to Window04. The entry order is the layout order.

# Sample 04 - a module (a sequence of templates) in a repeat.
# A template can be a list of template names. Each use adds them in order.
templates:
Door:
counter: { door: n }
instances:
- { browseName: "Door${n}", typeDefinition: ua:BaseObjectType, componentOf: "${parent}" }
Window:
counter: { window: n }
instances:
- { browseName: "Window${n}", typeDefinition: ua:BaseObjectType, componentOf: "${parent}" }
Bay: [Door, Window, Window] # A module: one door, then two windows.

instances:
- { browseName: Hall, typeDefinition: ua:BaseObjectType, organizedBy: /ua:Objects }
- expand:
parent: /ua:Objects/own:Hall
counters:
door: { start: 1, format: "00" }
window: { start: 1, format: "00" }
layout:
- Door # One door at the start.
- { use: Bay, repeat: 2 } # Two bays. The counters continue through the bays.
- Door # One door at the end.
The expanded configuration
instances:
- browseName: Hall
typeDefinition: ua:BaseObjectType
organizedBy: /ua:Objects
- browseName: Door01
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Hall
- browseName: Door02
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Hall
- browseName: Window01
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Hall
- browseName: Window02
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Hall
- browseName: Door03
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Hall
- browseName: Window03
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Hall
- browseName: Window04
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Hall
- browseName: Door04
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Hall

How to put blocks in blocks​

A template can have its own expand: block. The expander runs this block after the entries of the template. Use this to make a parent and then its children: a floor, then its rooms.

Sample 05-nested-blocks. This sample shows nested blocks. The template Floor makes its folder, then runs its own block for the rooms. The block of each floor declares the counter room, so each floor starts again at 01. The param floor of Room has inherit: true, so Room gets the value from the enclosing Floor call. The parent of each level is the folder of the level above.

# Sample 05 - nested blocks: a building, its floors, the rooms of each floor.
# A template can hold a block. The block of a template can use other templates.
templates:
Room:
params:
floor: { type: number, inherit: true } # Taken from the enclosing Floor call.
counter: { room: n }
instances:
- browseName: "Room${floor}${n}" # Room101, Room102, Room201...
typeDefinition: ua:BaseObjectType
componentOf: "${parent}"
- browseName: Temperature
dataType: ua:Double
componentOf: "${parent}/own:Room${floor}${n}"
Floor:
params:
floor: { type: number }
rooms: { type: number }
instances:
- browseName: "Floor${floor}"
typeDefinition: ua:FolderType
componentOf: "${parent}"
expand: # This block runs after the entries above.
parent: "${parent}/own:Floor${floor}" # The rooms go below the floor.
counters: { room: { start: 1, format: "00" } } # Each floor starts again at 01.
layout:
- { use: Room, repeat: "${rooms}" }

instances:
- { browseName: Building, typeDefinition: ua:FolderType, organizedBy: /ua:Objects }
- expand:
parent: /ua:Objects/own:Building
over: # One iteration for each record.
- { floor: 1, rooms: 2 }
- { floor: 2, rooms: 3 }
use: Floor
The expanded configuration
instances:
- browseName: Building
typeDefinition: ua:FolderType
organizedBy: /ua:Objects
- browseName: Floor1
typeDefinition: ua:FolderType
componentOf: /ua:Objects/own:Building
- browseName: Room101
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Building/own:Floor1
- browseName: Temperature
dataType: ua:Double
componentOf: /ua:Objects/own:Building/own:Floor1/own:Room101
- browseName: Room102
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Building/own:Floor1
- browseName: Temperature
dataType: ua:Double
componentOf: /ua:Objects/own:Building/own:Floor1/own:Room102
- browseName: Floor2
typeDefinition: ua:FolderType
componentOf: /ua:Objects/own:Building
- browseName: Room201
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Building/own:Floor2
- browseName: Temperature
dataType: ua:Double
componentOf: /ua:Objects/own:Building/own:Floor2/own:Room201
- browseName: Room202
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Building/own:Floor2
- browseName: Temperature
dataType: ua:Double
componentOf: /ua:Objects/own:Building/own:Floor2/own:Room202
- browseName: Room203
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Building/own:Floor2
- browseName: Temperature
dataType: ua:Double
componentOf: /ua:Objects/own:Building/own:Floor2/own:Room203

How to use a list of records​

Sample 06-records. This sample shows over: with a list of records. Each record gives the values of the params for one iteration. A param with a default can be absent from a record. A value outside the enum list is an error. The value of line comes from with: and is the same for all records. Do not give the same name in with: and in a record.

# Sample 06 - one iteration for each record, with typed params and defaults.
templates:
Motor:
params:
id: { type: string } # Required.
power: { type: number, default: 7.5 } # Optional: 7.5 when the record has no value.
starter: { type: string, enum: [direct, softStarter, vfd], default: direct }
line: { type: string } # Comes from the `with:` of the block.
instances:
- browseName: "${id}"
nodeId: "s=${line}.${id}"
typeDefinition: ua:BaseObjectType
componentOf: "${parent}"
description: "${power} kW, ${starter}"

instances:
- { browseName: Line1, typeDefinition: ua:BaseObjectType, organizedBy: /ua:Objects }
- expand:
parent: /ua:Objects/own:Line1
with: { line: L1 } # The same value for every record.
over:
- { id: M1, power: 15, starter: vfd }
- { id: M2 } # power and starter take their defaults.
- { id: M3, starter: softStarter }
use: Motor
The expanded configuration
instances:
- browseName: Line1
typeDefinition: ua:BaseObjectType
organizedBy: /ua:Objects
- browseName: M1
nodeId: s=L1.M1
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Line1
description: 15 kW, vfd
- browseName: M2
nodeId: s=L1.M2
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Line1
description: 7.5 kW, direct
- browseName: M3
nodeId: s=L1.M3
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Line1
description: 7.5 kW, softStarter

How to use a CSV table​

  1. Put the table in the folder of the configuration file, or in a folder below it.
  2. In the first line, write the names of the columns. Each name must be a param of the template.
  3. In the expand block, set over: { file: <table>.csv } and use: <template>.
  4. If the table uses a decimal comma, set decimalSeparator: "," and delimiter: ";".

Sample 07-csv-table. This sample shows over: with a CSV table. The columns can be in any order. A column that no param matches is an error. A missing column is an error when its param has no default. An empty cell gives the default of its param. The expander reads 50,5 as 50.5 only because the table declares decimalSeparator: ",".

# Sample 07 - one iteration for each row of a CSV table.
# The first line of the table names the columns. Each column is a param of the template.
templates:
Tank:
params:
id: { type: string }
capacity: { type: number } # "50,5" in the table: the table declares a decimal comma.
hasMixer: { type: boolean, default: false } # true, false, 1 or 0.
instances:
- { browseName: "${id}", typeDefinition: ua:BaseObjectType, componentOf: "${parent}" }
- { browseName: Capacity, dataType: ua:Double, componentOf: "${parent}/own:${id}" }
- { browseName: Mixer, typeDefinition: ua:BaseObjectType, componentOf: "${parent}/own:${id}", when: "${hasMixer}" }
initializers:
- { variable: "${parent}/own:${id}/own:Capacity", value: "${capacity}" }

instances:
- { browseName: TankFarm, typeDefinition: ua:FolderType, organizedBy: /ua:Objects }
- expand:
parent: /ua:Objects/own:TankFarm
over:
file: tanks.csv # Relative to the configuration file.
delimiter: ";" # Optional: found from the first line when absent.
decimalSeparator: "," # Never guessed: declare it.
use: Tank

tanks.csv:

id;capacity;hasMixer
T101;50,5;1
T102;120;0
T103;75;
The expanded configuration
instances:
- browseName: TankFarm
typeDefinition: ua:FolderType
organizedBy: /ua:Objects
- browseName: T101
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:TankFarm
- browseName: Capacity
dataType: ua:Double
componentOf: /ua:Objects/own:TankFarm/own:T101
- browseName: Mixer
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:TankFarm/own:T101
- browseName: T102
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:TankFarm
- browseName: Capacity
dataType: ua:Double
componentOf: /ua:Objects/own:TankFarm/own:T102
- browseName: T103
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:TankFarm
- browseName: Capacity
dataType: ua:Double
componentOf: /ua:Objects/own:TankFarm/own:T103
initializers:
- variable: /ua:Objects/own:TankFarm/own:T101/own:Capacity
value: 50.5
- variable: /ua:Objects/own:TankFarm/own:T102/own:Capacity
value: 120
- variable: /ua:Objects/own:TankFarm/own:T103/own:Capacity
value: 75

How to add optional equipment​

Sample 08-optional-equipment. This sample shows when:. Pump P1 has a variable frequency drive, so its Vfd entry is added. Pump P2 has none, so its Vfd entry is not added. The condition must give true or false. Other values are an error. The when: key is not in the expanded entry.

# Sample 08 - optional equipment with `when:`.
# An entry with `when:` is added only when its condition is true.
templates:
Pump:
params:
id: { type: string }
hasVfd: false # Shorthand: a boolean param, false by default.
instances:
- { browseName: "${id}", typeDefinition: ua:BaseObjectType, componentOf: "${parent}" }
- browseName: Vfd
typeDefinition: ua:BaseObjectType
componentOf: "${parent}/own:${id}"
when: "${hasVfd}" # Must give true or false.

instances:
- { browseName: Station, typeDefinition: ua:BaseObjectType, organizedBy: /ua:Objects }
- expand:
parent: /ua:Objects/own:Station
over:
- { id: P1, hasVfd: true }
- { id: P2 }
use: Pump
The expanded configuration
instances:
- browseName: Station
typeDefinition: ua:BaseObjectType
organizedBy: /ua:Objects
- browseName: P1
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Station
- browseName: Vfd
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Station/own:P1
- browseName: P2
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Station

How to add the mapping and the initial values​

Sample 09-mapping-and-initializers. This sample shows a template that adds mapping: and initializers: entries. The expander adds them to the end of their sections. The data block of each valve is db plus the valve number. ${...} is filled when the configuration loads. $raw is not changed: the runtime evaluates it. Put the data block in a param, not in the template, so the same template serves each line.

# Sample 09 - a template that also makes its mapping and its initial values.
# The PLC addresses are examples.
templates:
Valve:
counter: { valve: n }
params:
db: { type: number, inherit: true } # The first data block of the line.
instances:
- { browseName: "XV${n}", typeDefinition: ua:BaseObjectType, componentOf: "${parent}" }
- { browseName: Position, dataType: ua:Double, componentOf: "${parent}/own:XV${n}" }
- { browseName: Open, dataType: ua:Boolean, componentOf: "${parent}/own:XV${n}" }
mapping:
# ${...} is filled now. $raw stays: the runtime evaluates it.
- node: "${parent}/own:XV${n}/own:Position"
s7: "plc1:DB${db + $number(n)},REAL0"
- node: "${parent}/own:XV${n}/own:Open"
inputs: { raw: "plc1:DB${db + $number(n)},X4.0" }
value: "$raw.value = true"
initializers:
- { variable: "${parent}/own:XV${n}/own:Position", value: 0 }
Line:
params:
db: { type: number }
valves: { type: number }
expand:
counters: { valve: { start: 1, format: "00" } }
layout:
- { use: Valve, repeat: "${valves}" }

instances:
- { browseName: Line1, typeDefinition: ua:BaseObjectType, organizedBy: /ua:Objects }
- expand:
parent: /ua:Objects/own:Line1
with: { db: 100, valves: 2 }
use: Line
The expanded configuration
instances:
- browseName: Line1
typeDefinition: ua:BaseObjectType
organizedBy: /ua:Objects
- browseName: XV01
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Line1
- browseName: Position
dataType: ua:Double
componentOf: /ua:Objects/own:Line1/own:XV01
- browseName: Open
dataType: ua:Boolean
componentOf: /ua:Objects/own:Line1/own:XV01
- browseName: XV02
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:Line1
- browseName: Position
dataType: ua:Double
componentOf: /ua:Objects/own:Line1/own:XV02
- browseName: Open
dataType: ua:Boolean
componentOf: /ua:Objects/own:Line1/own:XV02
mapping:
- node: /ua:Objects/own:Line1/own:XV01/own:Position
s7: plc1:DB101,REAL0
- node: /ua:Objects/own:Line1/own:XV01/own:Open
inputs:
raw: plc1:DB101,X4.0
value: $raw.value = true
- node: /ua:Objects/own:Line1/own:XV02/own:Position
s7: plc1:DB102,REAL0
- node: /ua:Objects/own:Line1/own:XV02/own:Open
inputs:
raw: plc1:DB102,X4.0
value: $raw.value = true
initializers:
- variable: /ua:Objects/own:Line1/own:XV01/own:Position
value: 0
- variable: /ua:Objects/own:Line1/own:XV02/own:Position
value: 0

How to make an exception​

Use overrides: when one instance differs from the others: a door without a switch, a pump with another description.

Sample 11-overrides. This sample shows overrides:. The expander applies the overrides after it expands the templates. The key of an override is the browse path of an instance, or its node id. The fields of the override replace the fields of the instance. A list is replaced, not merged. null removes a field. An override that names no instance is an error, so an old exception cannot stay in the configuration.

# Sample 11 - an exception after expansion, with `overrides:`.
# All doors are the same, but door D02 has no left switch.
templates:
Door:
counter: { door: n }
instances:
- browseName: "D${n}"
nodeId: "s=P1-D${n}"
typeDefinition: ua:BaseObjectType
componentOf: "${parent}"
description: Sliding door

instances:
- { browseName: P1, typeDefinition: ua:BaseObjectType, organizedBy: /ua:Objects }
- expand:
parent: /ua:Objects/own:P1
counters: { door: { start: 1, format: "00" } }
layout:
- { use: Door, repeat: 3 }

overrides:
# The key is the path as dump-config prints it: <parent>/<browseName>.
/ua:Objects/own:P1/D02:
description: Sliding door, no left switch # This field replaces the field of the template.
# The key can also be the node id.
s=P1-D03:
description: null # null removes the field.
The expanded configuration
instances:
- browseName: P1
typeDefinition: ua:BaseObjectType
organizedBy: /ua:Objects
- browseName: D01
nodeId: s=P1-D01
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:P1
description: Sliding door
- browseName: D02
nodeId: s=P1-D02
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:P1
description: Sliding door, no left switch
- browseName: D03
nodeId: s=P1-D03
typeDefinition: ua:BaseObjectType
componentOf: /ua:Objects/own:P1

How to keep the node ids stable​

Clients subscribe to node ids. When you add a door before the other doors, the counters give new numbers to every door after it, and the clients do not find their nodes. The lock file records the node ids that you accepted.

  1. Run opcua-omni-edge templates accept <config.yaml>. The command writes <config>.templates.lock next to the configuration.
  2. Keep the lock file with the configuration, in the same version control.
  3. After a change, run opcua-omni-edge templates diff <config.yaml>. The command shows each added, removed and renumbered instance. A renumbered instance breaks the clients that use it.
  4. If the change is correct, run templates accept again.

At each start, the gateway compares the expansion with the lock file:

  • When they are the same, the gateway shows nothing.
  • When there are only new instances, the gateway shows one line.
  • When an instance is renumbered or removed, the gateway shows a warning with the list.
  • With opcua-omni-edge run --strict-templates, or OMNI_EDGE_STRICT_TEMPLATES=1, the gateway does not start in that case.

The gateway never writes the lock file. Only templates accept writes it.

More about templates​