Modify

Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#12795 closed defect (wontfix)

dhcp script don't store gateway value in network state file

Reported by: alexandro@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: netifd dhcp Cc:

Description

dhcp script don't store gateway value in network state file. This is regression. Problem in package/netifd/files/lib/netifd/dhcp.script

--- /rom/lib/netifd/dhcp.script 2012-12-16 23:57:40.000000000 +0000
+++ /overlay/lib/netifd/dhcp.script 2013-01-13 11:45:36.000000000 +0000
@@ -22,6 +22,7 @@

for i in $router; do

proto_add_ipv4_route 0.0.0.0 0 "$i"

done

+ uci_set_state network "$INTERFACE" gateway "$router"

# CIDR STATIC ROUTES (rfc3442)
[ -n "$staticroutes" ] && set_classless_routes $staticroutes

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by nbd

  • Resolution set to wontfix
  • Status changed from new to closed

the network state file is obsolete and users of it are being updated. please use the network_get_gateway() function from /lib/functions/network.sh if you need to get the gateway in your own script code.

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.