====================================================
FlowChain Template Variables Guide
====================================================

1. What template variables do
----------------------------------------------------

Template variables let you replace repeated values such as an IP address,
host name, interface name, or device identifier across every item in the
current FlowChain tab at once.

A placeholder must use two opening and two closing braces:

  {{variable_name}}

Use letters, numbers, and underscores in names. A single-brace value such
as {variable_name} is not recognized.


2. How to use them
----------------------------------------------------

1. Capture or import the command list into one FlowChain tab.
2. Replace the values that vary with placeholders such as {{host}}.
3. Select Edit > Fill template variables.
4. Enter a value for each variable shown in the dialog.
5. Select Apply, review every resulting command, and then send the items.

Every occurrence of the same variable name in the current tab receives the
same value. A field left blank is not changed. If necessary, use Ctrl+Z to
undo the applied replacements. FlowChain refuses to apply values to another
tab if you switch tabs while the entry dialog is open.


3. Network device example
----------------------------------------------------

Template:

  configure terminal
  interface {{interface}}
  description {{description}}
  ip address {{ip_address}} {{subnet_mask}}
  no shutdown
  end
  write memory

Example values:

  interface   = GigabitEthernet1/0/10
  description = Server-01
  ip_address  = 192.168.10.20
  subnet_mask = 255.255.255.0

Result:

  configure terminal
  interface GigabitEthernet1/0/10
  description Server-01
  ip address 192.168.10.20 255.255.255.0
  no shutdown
  end
  write memory


4. RACADM example
----------------------------------------------------

  racadm -r {{idrac_ip}} -u {{user}} get BIOS
  racadm -r {{idrac_ip}} -u {{user}} set BIOS.BiosBootSettings.BootMode {{boot_mode}}
  racadm -r {{idrac_ip}} -u {{user}} jobqueue create BIOS.Setup.1-1

Example values:

  idrac_ip = 192.168.1.120
  user = admin
  boot_mode = Uefi


5. Safety notes
----------------------------------------------------

- Always review commands before sending them. Command syntax varies by
  device model, operating system, firmware, and RACADM version.
- Do not store passwords, API keys, or other secrets in templates unless
  you accept that they will be saved as plain text in FlowChain.dat.
- Test potentially destructive configuration commands on a non-production
  device first.
- Keep one device or task per tab to reduce accidental substitutions.

====================================================
