Community discussions

MikroTik App
 
rkosegi
just joined
Topic Author
Posts: 1
Joined: Fri Aug 21, 2015 3:40 pm

Duplicate attributes in API response

Tue Dec 28, 2021 2:11 pm

Hi,

I think there is minor bug in API.
When I sent request
ip/arp/print
then I got response such as

ReWord []
TagWord [tag=2]
AttributeWord [type==, name=.id, value=*6]
AttributeWord [type==, name=address, value=192.168.100.100]
AttributeWord [type==, name=mac-address, value=14:DD:A9:00:00:00]
AttributeWord [type==, name=interface, value=bridge1]
AttributeWord [type==, name=published, value=false]
AttributeWord [type==, name=invalid, value=false]
AttributeWord [type==, name=DHCP, value=false]
AttributeWord [type==, name=dynamic, value=true]
AttributeWord [type==, name=published, value=false]
AttributeWord [type==, name=complete, value=true]
AttributeWord [type==, name=disabled, value=false]
EmptyWord []

Not bad, however I can see "published" attribute is sent twice. This is causing minor problem in my code as I'm building attributes into immutable map, which does not allow duplicate keys.
I'm using RB750 with version 6.49.1

Who is online

Users browsing this forum: No registered users and 15 guests