From b4ad2fb3c41a7026de04e4c59f516fa7ee05fdde Mon Sep 17 00:00:00 2001 From: Richard Alpe Date: Mon, 11 Sep 2023 16:15:29 +0200 Subject: [PATCH] confd: add ip proto when setting static ip There might be more places in confd where this is needed. This works for the most basic use case. The proto set here is picked up by statd and converted into a YANG origin, which is exposed to the user. Signed-off-by: Richard Alpe --- src/confd/src/ietf-interfaces.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/confd/src/ietf-interfaces.c b/src/confd/src/ietf-interfaces.c index 94b46a77..3b26768f 100644 --- a/src/confd/src/ietf-interfaces.c +++ b/src/confd/src/ietf-interfaces.c @@ -381,7 +381,7 @@ static int netdag_gen_diff_addr(FILE *ip, const char *ifname, is_std_lo_addr(ifname, adrd.new, pfxd.new)) addcmd = "replace"; - fprintf(ip, "address %s %s/%s dev %s\n", addcmd, + fprintf(ip, "address %s %s/%s dev %s proto 4\n", addcmd, adrd.new, pfxd.new, ifname); return 0; }