+ if (streq_ptr(operational_state, "routable")) {
+ on_color_oper = ansi_highlight_green();
+ off_color_oper = ansi_highlight_off();
+ } else if (streq_ptr(operational_state, "degraded")) {
+ on_color_oper = ansi_highlight_yellow();
+ off_color_oper = ansi_highlight_off();
+ }
+
+ printf(" State: %s%s%s\n", on_color_oper, strna(operational_state), off_color_oper);
+
+ c = local_addresses(rtnl, 0, &addresses);
+ for (i = 0; i < c; i++) {
+ _cleanup_free_ char *pretty = NULL;
+
+ r = in_addr_to_string(addresses[i].family, &addresses[i].address, &pretty);
+ if (r < 0)
+ return log_oom();
+
+ printf("%13s %s\n",
+ i > 0 ? "" : "Address:", pretty);
+ }