Blame SOURCES/0008-designated-router.patch

caebb1
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c
caebb1
index 69a3e4587..57ef6029a 100644
caebb1
--- a/ospfd/ospf_vty.c
caebb1
+++ b/ospfd/ospf_vty.c
caebb1
@@ -3737,6 +3737,28 @@ static void show_ip_ospf_interface_sub(struct vty *vty, struct ospf *ospf,
caebb1
 				vty_out(vty,
caebb1
 					"  No backup designated router on this network\n");
caebb1
 		} else {
caebb1
+			nbr = ospf_nbr_lookup_by_addr(oi->nbrs, &DR(oi));
caebb1
+			if (nbr) {
caebb1
+				if (use_json) {
caebb1
+					json_object_string_add(
caebb1
+						json_interface_sub, "drId",
caebb1
+						inet_ntoa(nbr->router_id));
caebb1
+					json_object_string_add(
caebb1
+						json_interface_sub, "drAddress",
caebb1
+						inet_ntoa(nbr->address.u
caebb1
+								.prefix4));
caebb1
+				} else {
caebb1
+					vty_out(vty,
caebb1
+						"  Designated Router (ID) %s",
caebb1
+						inet_ntoa(nbr->router_id));
caebb1
+					vty_out(vty,
caebb1
+						" Interface Address %s\n",
caebb1
+						inet_ntoa(nbr->address.u
caebb1
+								.prefix4));
caebb1
+				}
caebb1
+			}
caebb1
+			nbr = NULL;
caebb1
+
caebb1
 			nbr = ospf_nbr_lookup_by_addr(oi->nbrs, &BDR(oi));
caebb1
 			if (nbr == NULL) {
caebb1
 				if (!use_json)