]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkctl: make enslaved operstate green
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 9 Feb 2019 18:49:12 +0000 (03:49 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 18 Feb 2019 09:04:18 +0000 (18:04 +0900)
src/network/networkctl.c

index 20edac46795c12eb1bd705815bf4b0f6e98e3bf7..2803f5210b10f98ea988e8bf94315c550a3de63f 100644 (file)
@@ -65,7 +65,7 @@ static void operational_state_to_color(const char *state, const char **on, const
         assert(on);
         assert(off);
 
-        if (streq_ptr(state, "routable")) {
+        if (STRPTR_IN_SET(state, "routable", "enslaved")) {
                 *on = ansi_highlight_green();
                 *off = ansi_normal();
         } else if (streq_ptr(state, "degraded")) {