Skip to content

Commit

Permalink
confd: add ip proto when setting static ip
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rical committed Sep 18, 2023
1 parent 35e7298 commit 28646b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/confd/src/ietf-interfaces.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 28646b7

Please sign in to comment.