Added support for new interfaces syntax#684
Conversation
|
@rdmark I just noticed that the netmask is currently part of the IP address (IP/NETMASK). I think we should keep it that way, it is a legal notation. Note that the new syntax uses "interface" instead of "interfaces", in make backwards compatiblity easier. All in all one could claim "interface" is better anyway, because only one interface from the list is going to be used anyway :). |
|
@uweseimet I'm good with keeping inet and mask together in one parameter. Been testing the latest code for a bit and it seems to work as expected. Here's how the Web UI interprets the new default parameters for network devices. |
|
@rdmark Looks good. Only having 2 parameters has the advantage of needing less space on the screen. For the web ui this is not that relevant, but for a smartphone it makes a difference. |
doc/rascsi.1
Outdated
| n is the SCSI ID number (0-7). u (0-31) is the optional LUN (logical unit). The default LUN is 0. | ||
| .IP | ||
| FILE is the name of the image file to use for the SCSI device. For devices that do not support an image file (SCBR, SCDP, SCLP, SCHS) the filename may have a special meaning or a dummy name can be provided. For SCBR and SCDP it is an optioinal prioritized list of network interfaces, e.g. "interfaces=eth0,eth1,wlan0". For SCLP it is the print command to be used and a reservation timeout in seconds, e.g. "cmd=lp -oraw:timeout=60". | ||
| FILE is the name of the image file to use for the SCSI device. For devices that do not support an image file (SCBR, SCDP, SCLP, SCHS) the filename may have a special meaning or a dummy name can be provided. For SCBR and SCDP it is an optioinal prioritized list of network interfaces, an optional IP address and netmask, e.g. "interfaces=eth0,eth1,wlan0:inet=10.10.20.1/24". For SCLP it is the print command to be used and a reservation timeout in seconds, e.g. "cmd=lp -oraw:timeout=60". |
There was a problem hiding this comment.
Shall we add '%f' to the printer cmd parameter example, since it is mandatory?
doc/rascsi_man_page.txt
Outdated
| tized list of network interfaces, an optional IP address and | ||
| netmask, e.g. "interfaces=eth0,eth1,wlan0:inet=10.10.20.1/24". | ||
| For SCLP it is the print command to be used and a reservation | ||
| timeout in seconds, e.g. "cmd=lp -oraw:timeout=60". |
There was a problem hiding this comment.
Done. rascsi_man_page.txt is generated from rascsi.1.

@rdmark Can you please test?