Hello
I need your help. I am programing an easy desktop app for my woman, so she can easily enable / disable virtual wifi interface for our guests.
I have nice class ready but I miss the most important methods for enabling / disabling interface. ![]()
I found out that I am not able to enable / disable interface using ruby mtik4.0.3 package/gem. Using ruby API CLI called tikcli I am able to get details of an interface, in the code I am querying using .id attribute. But when I try to send enable/disable request using .id , nothing happens (nor name, nor numbers attributes work) -> interface does not change its state.
Can you check if this API command is working in ROS 6.35.1 ? I saw some PHP implementations on the internet, I do not understand why it should not work in Ruby, also response of request is !DONE, so RB clearly understood what was requested.
Or am I missing something ?
thanks Jozef
INTERFACE DETAILS
Command (/quit to end): /interface/print ?.id=*B
=== COMMAND: /interface/print
<<< '/interface/print' (16)
<<< '?.id=*B' (7)
<<< '.tag=4' (6)
<<< END-OF-SENTENCE
>>> '!re' (3)
>>> '.tag=4' (6)
>>> '.id=*B' (6)
>>> 'name=jj4guestsVAP' (17)
>>> 'type=wlan' (9)
.
.
.
ENABLE/DISABLE
Command (/quit to end): /interface/enable ?.id=*B
=== COMMAND: /interface/enable
<<< '/interface/enable' (17)
<<< '?.id=*B' (7)
<<< '.tag=6' (6)
<<< END-OF-SENTENCE
>>> '!done' (5)
>>> '.tag=6' (6)
>>> END-OF SENTENCE
COMMAND VARIANTS IT TRIED
/interface/enable ?.id=*B
/interface/wireless/enable ?.id=*B
/interface/enable ?id=*B
/interface/wireless/enable ?id=*B
/interface/enable ?.id=B
/interface/wireless/enable ?.id=B
/interface/enable ?id=B
/interface/wireless/enable ?id=B
/interface/enable ?name=jj4guestsVAP
/interface/wireless/enable ?name=jj4guestsVAP
Environment:
RUBY version: ruby 2.3.0p0 (2015-12-25) [x86_64-linux-gnu]
RUBY GEM: mtik (4.0.3)
RouterOS: 6.35.1