Revert and adjust the changes in ometric_set_state() from last commit.
authorclaudio <claudio@openbsd.org>
Mon, 5 Dec 2022 11:50:11 +0000 (11:50 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 5 Dec 2022 11:50:11 +0000 (11:50 +0000)
commitd935d7a8ad3bdd0dec9b162c2b7a7404e4c5be88
tree837d3b99aa04b2451574d348c4082dc092f74deb
parenta5b656f8bf06ee5a19bb4e5bcb940000e16a7391
Revert and adjust the changes in ometric_set_state() from last commit.
Calling ometric_set_int_with_labels() for a state metric fails because
there is a check in ometric_set_int comparing the type.
Use olabels_add_extras() and ometric_set_int_value() instead.
usr.sbin/bgpctl/ometric.c