1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-13 19:03:52 +02:00

Merge pull request #23723 from findlayfeng/fix_proto-bonding

proto-bonding: Modify ipaddr as optional
This commit is contained in:
Florian Eckert 2024-04-08 10:43:09 +02:00 committed by GitHub
commit c9eb80412b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -193,15 +193,8 @@ proto_bonding_setup() {
proto_init_update "$link" 1
# For static configuration we _MUST_ have an IP address
[ -z "$ipaddr" ] && {
echo "$cfg" "No local IP address defined"
proto_notify_error "$cfg" INVALID_LOCAL_ADDRESS
proto_block_restart "$cfg"
return
}
proto_add_ipv4_address "$ipaddr" "$netmask"
# If ipaddr is configured, configure the ip to the interface
[ -n "$ipaddr" ] && proto_add_ipv4_address "$ipaddr" "$netmask"
proto_send_update "$cfg"
}