mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-03-14 21:20:28 +01:00
Ticket refs #4282: Device.IP.Interface.{i}.MaxMTUSize parameter is mapped incorrectly
This commit is contained in:
parent
1a8c349787
commit
4631504931
2 changed files with 14 additions and 4 deletions
|
|
@ -1558,10 +1558,11 @@ static int set_IPInterface_Reset(char *refparam, struct dmctx *ctx, void *data,
|
|||
return 0;
|
||||
}
|
||||
|
||||
/*#Device.IP.Interface.{i}.MaxMTUSize!SYSFS:/sys/class/net/@Name/mtu*/
|
||||
/*#Device.IP.Interface.{i}.MaxMTUSize!UCI:network/interface,@i-1/mtu*/
|
||||
static int get_IPInterface_MaxMTUSize(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value)
|
||||
{
|
||||
return get_ip_iface_sysfs(data, "mtu", value);
|
||||
*value = dmuci_get_value_by_section_fallback_def((struct uci_section *)data, "mtu", "1500");
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int set_IPInterface_MaxMTUSize(char *refparam, struct dmctx *ctx, void *data, char *instance, char *value, int action)
|
||||
|
|
|
|||
|
|
@ -41116,8 +41116,17 @@
|
|||
],
|
||||
"mapping": [
|
||||
{
|
||||
"type": "sysfs",
|
||||
"file": "/sys/class/net/@Name/mtu"
|
||||
"type": "uci",
|
||||
"uci": {
|
||||
"file": "network",
|
||||
"section": {
|
||||
"type": "interface",
|
||||
"index": "@i-1"
|
||||
},
|
||||
"option": {
|
||||
"name": "mtu"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue