« Previous - Version 2/5 (diff) - Next » - Current version
Gioacchino Mazzurco, 04/18/2014 06:22 pm


Parametric options

Options like system.hostname, network.main_ipv4_address, network.main_ipv6_address, can be parametric so what the user write is a template of what the value will be, this page is about to try to define a flexible yet not complicated formalism for those templates.

Old formalism provide just substitution by mac address byte but this is eventually quite limited and already showed limits, like the impossibility for the user to control the format in which the mac address byte should be represented.

The new formalism should have following characteristics:

  • Easy parsing just with lua patterns
  • Compact format
  • Possibility to take byte from mac address
  • Possibility to take randoms byte
  • Possibility to choose the output format

I was thinking a way to have bit level control but all ides I had needed too much complication of patterns syntax

Proposal 1:

|<char source><char source param><char destination format><char destination format param>|