danikf / tik4net

Manage mikrotik routers with .NET C# code via ADO.NET like API or enjoy O/R mapper like highlevel api.
Apache License 2.0
174 stars 93 forks source link

how to use "find" filter without using ".id" in set command ? #66

Closed bi9595 closed 4 years ago

bi9595 commented 4 years ago

Hi danikf, please help me about: how to use "find" filter without using ".id" in set command ? for exmple: 1- interface set [ find name=ether1 ] comment=abcd 2- interface set ether1 comment=34343434

Is possible above commands in tik4net?

Regards

saputra19 commented 4 years ago

how about this Dim cmd As ITikCommand = connection.CreateCommandAndParameters("/interface/set", "name", "ifaceName", "comment", "ifaceComment") cmd.ExecuteNonQuery()

danikf commented 4 years ago

Mikrotik API generic issue, not tik4net specific. Solution mentioned on support forum.