]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Nest: Add message when attempting to reload protocol that is not UP master
authorIgor Putovny <igor.putovny@nic.cz>
Tue, 24 Mar 2026 17:42:56 +0000 (18:42 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Thu, 23 Apr 2026 14:31:55 +0000 (16:31 +0200)
Fixes: #36
nest/proto.c

index 9e3d7d9b49f2ff2451680dc453e92a2e5fe040b2..470544dfcb13167fb7498578d857c0aab7a23821 100644 (file)
@@ -2244,7 +2244,10 @@ proto_cmd_reload(struct proto *p, uintptr_t dir, int cnt UNUSED)
 
   /* If the protocol in not UP, it has no routes */
   if (p->proto_state != PS_UP)
+  {
+    cli_msg(-8, "%s: is not UP", p->name);
     return;
+  }
 
   /* All channels must support reload */
   if (dir != CMD_RELOAD_OUT)