kkudryashov / mikrotik4net

Automatically exported from code.google.com/p/mikrotik4net
Other
0 stars 0 forks source link

Unset command for profile does not work. #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.using (TikSession session = new TikSession(TikConnectorType.Api))
            {
                session.Open(RawStatic.MikIP, RawStatic.User, RawStatic.Password);

                var apiConnector = (IApiConnector)session.Connector;

                var properties = new List<string>();
                properties.Add("local-address");
                properties.Add("remote address");
                properties.Add("dns server");

                apiConnector.ExecuteUnset("/ppp/profile", "default", properties);

            }

What is the expected output? What do you see instead?

the expected output is the 3 property value will be unset from mikrotik but it 
does not happen and get error below :
Target returns error.
  COMMAND:
    /ppp/profile/unset
    =.id=default
    =local-address=
    =remote address=
    =dns server=
  ERRORS:
    =message=unknown parameter
  RESPONSE:
    !trap
=message=unknown parameter
    !done

What version of the product are you using? On what operating system?

0.9.2.0

Please provide any additional information below.

Original issue reported on code.google.com by alimarda...@gmail.com on 18 Sep 2012 at 4:39

GoogleCodeExporter commented 9 years ago
Hi. Thanks for report. I will check it out soon. You could use low-level 
command if you need some solution immediatelly.

Danik

Original comment by da...@danik.biz on 28 Sep 2012 at 9:41