Community discussions

MikroTik App
 
alcohol
just joined
Topic Author
Posts: 11
Joined: Thu Oct 31, 2013 8:23 pm

interface-type has a space and is unquoted (bug?)

Tue May 30, 2017 10:36 pm

Here is an example:

[provisioning@MikroTik] > /interface wireless print terse
0 name=wlan1 mtu=1500 l2mtu=1600 mac-address=xx:xx:xx:xx:xx:xx arp=enabled disable-running-check=no interface-type=Atheros AR9300 ...

I think interface-type=Atheros AR9300 should be interface-type="Atheros AR9300"
 
alcohol
just joined
Topic Author
Posts: 11
Joined: Thu Oct 31, 2013 8:23 pm

Re: interface-type has a space and is unquoted (bug?)

Fri Jun 02, 2017 11:10 pm

Found more examples of unquoted output with spaces:

ssid=cats and boots area=""
wpa-pre-shared-key=cats and boots wpa2-pre-shared-key=cars and clowns

How can we reasonably parse these?
 
alcohol
just joined
Topic Author
Posts: 11
Joined: Thu Oct 31, 2013 8:23 pm

Re: interface-type has a space and is unquoted (bug?)

Fri Jun 02, 2017 11:19 pm

Ok, this does not address the interface-type bug, but the workaround for SSID and pre-shared-key is to not use "terse" mode. The values are quoted in the normal output.

Who is online

Users browsing this forum: erkexzcx and 72 guests