Anyone know if there are any predefined variables for use when creating functions in the dude? Or does anyone know the syntax for creating/using variables?
I'm trying to write a function that needs arguments passed to it.. is this possible?
function wireless_interface($arg1)
{
ros_command("interface wireless registration-table print count-only where interface='$arg1'")
}
wireless_interface(wlan1) -> returns value to dude for specified interface.
Hi,Here's an example:
Code: Select allfunction wireless_interface($arg1) { ros_command("interface wireless registration-table print count-only where interface='$arg1'") } wireless_interface(wlan1) -> returns value to dude for specified interface.