Can any one help me.
How to add comment to specific interface with api,or how to remove pppoe clinet from interface with api.Thanks.
How do you do it from CLI?
It’s pretty much the same, except that
- The name of the menu and command is written with “/” instead of spaces, including the first.
- Every argument is a new API “word”.
- You need to explicitly set the name of every argument (whereas CLI allows you to omit some of them), most notably the “numbers” argument.
- No integers in “numbers” allowed (ironically enough). In the case of interfaces, you can use the interface name. In other cases, you can use a “print” command on that same menu with an API query.
So f.e. (in protocol flow):
/interface/comment
=numbers=pppoe-out1
=comment=My comment with the "comment" command, where I set ONLY the comment.
/interface/disable
=numbers=pppoe-out1
/interface/set
=numbers=pppoe-out1
=disabled=yes
=comment=My comment with "set", where I both set the comment, and disable the interface at the same time.
Thank You.
WORKING!!