feat: include a alias_display
attr for Switch
, Link
, and Interface
and expose on their dict and json values
#493
Labels
In the front-end, there's always that requirement of trying to display user friendly displayed value for a
Switch
,Link
, andInterface
, which boils down to trying to display ametadata.[node_name|link_name|port_name]
(respectively) or fallback to theirid
value if the metadata value is empty or not set. This code has been repeated all over many components in the UI, this should be implemented in the back-end and then the UI just read thisalias_display
or whatever it'll be called.Here are a few examples where that gets (re)implemented over and over in many UIs components:
The text was updated successfully, but these errors were encountered: