Device.IP.Interface.{i}.IPv6Prefix.{i}.Origin: fix its invalid value DHCPv6 -> PrefixDelegation

This commit is contained in:
Amin Ben Ramdhane 2020-12-23 17:08:09 +01:00
parent 75759e1c6e
commit 15ed15c476

View file

@ -2047,7 +2047,7 @@ static int get_IPInterfaceIPv6Prefix_Origin(char *refparam, struct dmctx *ctx, v
} else { } else {
char *proto = NULL; char *proto = NULL;
dmuci_get_value_by_section_string(((struct intf_ip_args *)data)->interface_sec, "proto", &proto); dmuci_get_value_by_section_string(((struct intf_ip_args *)data)->interface_sec, "proto", &proto);
*value = (proto && strcmp(proto, "dhcpv6") == 0) ? "DHCPv6" : "Static"; *value = (proto && strcmp(proto, "dhcpv6") == 0) ? "PrefixDelegation" : "Static";
} }
return 0; return 0;
} }