<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">tag:
type: txt
help: Set to map DNS names to system interfaces
syntax:expression: pattern $VAR(@) "^[-a-zA-Z0-9.]+$" ; "invalid host name $VAR(@)"
commit:expression: $VAR(./inet) != ""; "IP address for the static mapping must be set"
end:expression: "sudo sh -c \"\
  touch /etc/hosts; \
  sed -i '/ $VAR(@) .*#vyatta entry/d' /etc/hosts; \
  if [ -z \"$VAR(./inet/@)\" ]; then exit 0; fi; \
  declare -a aliases=( $VAR(alias/@@) ); \
  echo \\\"$VAR(inet/@)\t $VAR(@) \\${aliases[*]} \t #vyatta entry\\\" \               &gt;&gt; /etc/hosts\" "
</pre></body></html>