aristanetworks / goarista

Fairly general building blocks used in Arista Go code and open-sourced for the benefit of all.
Apache License 2.0
213 stars 68 forks source link

extending valuelabel flag to floats #57

Closed kalebris closed 3 years ago

kalebris commented 3 years ago

We have a usecase where values are actually ints presented in float64 (remote-as) and valuelabel wasn't working as it is only working on strings currently. Changing the logic to force valuelabel even on non strings and treat them as integers.

avi-kumar commented 3 years ago

resolved in https://github.com/aristanetworks/goarista/commit/5051269002d8d1bd096a3bcaccee35eaa50a8b35