mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
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:
committed by
Joachim Wiberg
parent
59c02bd7f3
commit
b4ad2fb3c4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user