QualiSystems / shell-networking-standard

Repository for standards for use by CloudShell Shells.
Apache License 2.0
0 stars 2 forks source link

remove separate Load Firmware inputs #24

Open ericrqs opened 8 years ago

ericrqs commented 8 years ago

Load Firmware currently requests a file path and server IP in separate fields. This assumes that TFTP will always be used.

Some switches support other methods like FTP, HTTP, HTTPS, SCP, local files already on the device, etc. It's unclear how these options would be mapped to the two inputs.

Currently I am ignoring the IP input and treating the path field as a URL.

If there were just a single input field, it could be used to support all cases.

The only cost is that the caller would become responsible for writing "tftp://".

These could be passed in the single input field:

file.bin (for a local file already on the device) path/to/file.bin (for a fancier device) file:///path/to/file.bin (if we wanted to be uniform) tftp://123.45.67.89/path/to/file.bin in the input field. ftp://user:password@123.45.67.89/path/file.bin http://123.45.67.89/path/file.bin http://user:password@123.45.67.89/path/file.bin https://123.45.67.89/path/file.bin samba://user:password@123.45.67.89/path/file.bin

etc.

Cases where something about the URL is not standardized (e.g. credentials) could be handled in a driver-specific way. The URL wouldn't necessarily be passed through directly to the device.