VyOS Networks Blog

Building an open source network OS for the people, together.

Images and git digest #5

Daniil Baturin
Posted 8 Nov, 2013

Images: i386, i386-virt, amd64.

The changes I included are minor, but at least end-user visible. First, there’s a command to view SCSI devices:

vyos@vyos:~$ show hardware scsi
[1:0:0:0] disk VMware Virtual disk 1.0 /dev/sda
[2:0:0:0] cd/dvd NECVMWar VMware IDE CDR10 1.00 /dev/sr0

“show hardware scsi detailed” is supported too.

Second, I renamed “show system usb” to “show hardware usb” for consistency with other hardware viewing commands and added “show hardware usb detailed”.

# run show hardware usb
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Of course those are simple wrappers to lsscsi and lsusb, nothing fancy.

Build system changes include a fix for trailing slashes in mirror URLs. It annoyed me enough to make a quick fix and simply remove trailing slashes from the URLs given in arguments (I wanted to add a URL joining function for arbitrary number of parts, but this should be good enough).

The thing I’m working on now is removing the remains of sablotron. I verified the XML op mode stuf works with xsltproc, but I’m more likely to just eliminate XML from there for now and add simple formatted output. If XML was used consistently throughout the system, it would be cool, but it is not, and also it’s generated not in the best way, like this:

print $fh "    <pkts>$pkts</pkts>n";

so it needs at least heavy refactoring anyway.

The post categories:

Comments