diff options
| author | Marin Ivanov <[email protected]> | 2024-08-21 03:30:16 +0300 |
|---|---|---|
| committer | Marin Ivanov <[email protected]> | 2024-08-21 03:30:16 +0300 |
| commit | 193f4933a8a83ee191b5d3bb8b8b8237dc03bf7d (patch) | |
| tree | 3ee0c8a99c73e60840723267834c1e22a468713b /config.toml | |
| parent | 3ea3e8694dca23910c10552d24d804b344f7adb9 (diff) | |
make toml config
Diffstat (limited to 'config.toml')
| -rw-r--r-- | config.toml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..f5546a7 --- /dev/null +++ b/config.toml @@ -0,0 +1,37 @@ +device = "Device Name" +swVersion = "1.0" +hwVersion = "1.0" + +[sections] + +[sections.network] +title = "Network" + +[[sections.network.fields]] +id = "macaddr" +title = "MAC address" +pattern = "[0-9a-fA-F]{2}:[0-9a-fA-F]{2}:[0-9a-fA-F]{2}:[0-9a-fA-F]{2}:[0-9a-fA-F]{2}:[0-9a-fA-F]{2}" +invalidmsg = "Enter MAC address. E.g. 00:11:22:33:44:55" +required = true + +[[sections.network.fields]] +id = "ipaddr" +title = "IP address" +pattern = "\\d+.\\d+.\\d+.\\d+" +hint = "192.168.4.2" +invalidmsg = "Enter IP address. E.g. 192.168.4.2" +required = true + +[[sections.network.fields]] +id = "netmask" +title = "Netmask" +pattern = "\\d+.\\d+.\\d+.\\d+" +hint = "255.255.255.0" +invalidmsg = "Enter network mask. E.g. 255.255.255.0" +required = true + +[[sections.network.fields]] +id = "gateway" +type = "ip" +title = "Gateway" +pattern = "\\d+.\\d+.\\d+.\\d+" |
