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 <richard@bit42.se>
This commit is contained in:
Richard Alpe
2023-09-19 11:56:14 +02:00
committed by Joachim Wiberg
parent 59c02bd7f3
commit b4ad2fb3c4
+1 -1
View File
@@ -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;
}