Skip to content

update readme, example conf file with behaviour

Sysmgr ships with example conf files (/etc/sysmgr/sysmgr.example.conf) that show a misleading example:

crate {
	host = "192.168.3.240"
	mch = "NAT"
	username = ""
	password = ""
	authtype = none
	description = "Spare Crate"
}

I couldn't figure out why Sysmgr was setting a uHTR to an IP (192.168.0.12) outside the subnet for that network (192.168.1.[1-254]). Turns out, "description" seems to be used for setting the crate number/subnet, and instead of string, it should be int. So if you have uHTR in slot 3, it works out like this:

  • description = "4" , your uHTR gets assigned 192.168.4.12
  • description = "1" , your uHTR gets 192.168.1.12
  • description = "actually useful description string", your uHTR gets 192.168.0.12

Could you either document this behaviour, or introduce another field with a less misleading name than "description"?