Modify

Opened 4 years ago

Last modified 4 years ago

#14947 new defect

uci / unexpected, strange behave

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

Description

in early startup/S01 i add unnamed sections to dhcp and see
strange things:

uci add dhcp 'host'
uci set dhcp.@host[-1]='host'
uci set dhcp.@host[-1].ip='127.0.0.2'
uci set dhcp.@host[-1].mac='00:00:00:00:00:00'
uci set dhcp.@host[-1].name='lo-alias'

i wondered, because it gets automatically commited somehow,
so i searched for an error...and see:

root@box:~ -/root- uci show dhcp
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].cachesize=100
dhcp.@dnsmasq[0].domainneeded=0
dhcp.@dnsmasq[0].boguspriv=1
dhcp.@dnsmasq[0].filterwin2k=0
dhcp.@dnsmasq[0].localise_queries=1
dhcp.@dnsmasq[0].rebind_protection=0
dhcp.@dnsmasq[0].rebind_localhost=0
dhcp.@dnsmasq[0].local=/lan/
dhcp.@dnsmasq[0].domain=lan
dhcp.@dnsmasq[0].expandhosts=1
dhcp.@dnsmasq[0].nonegcache=0
dhcp.@dnsmasq[0].authoritative=1
dhcp.@dnsmasq[0].readethers=1
dhcp.@dnsmasq[0].leasefile=/tmp/dhcp.leases
dhcp.@dnsmasq[0].resolvfile=/tmp/resolv.conf.auto
dhcp.@dnsmasq[0].addnhosts=/var/run/hosts_olsr /etc/local.hosts
dhcp.@dnsmasq[0].server=8.8.8.8
dhcp.@dnsmasq[0].notinterface=wan
dhcp.@dnsmasq[0].dhcpscript=/etc/dhcp-script.d/10dhcpscript
dhcp.lan=dhcp
dhcp.lan.interface=lan
dhcp.lan.start=34
dhcp.lan.limit=29
dhcp.lan.leasetime=2h
dhcp.lan.force=1
dhcp.lan.ignore=0
dhcp.wlan=dhcp
dhcp.wlan.interface=wlan
dhcp.wlan.start=2
dhcp.wlan.netmask=255.255.255.240
dhcp.wlan.limit=13
dhcp.wlan.leasetime=1h
dhcp.wlan.force=1
dhcp.wlan.ignore=0
dhcp.wan=dhcp
dhcp.wan.interface=wan
dhcp.wan.ignore=1
dhcp.mybridge=dhcp
dhcp.mybridge.interface=mybridge
dhcp.mybridge.start=2
dhcp.mybridge.limit=253
dhcp.mybridge.force=1
dhcp.mybridge.ignore=0
dhcp.mybridge.netmask=255.255.0.0
dhcp.mybridge.dhcp_option=option:router,192.168.0.1,192.168.0.1
dhcp.mybridge.leasetime=10m
dhcp.@host[0]=host
dhcp.@host[0].ip=127.0.0.2
dhcp.@host[0].mac=00:00:00:00:00:00
dhcp.@host[0].name=lo-alias
dhcp.@dhcp[0]=dhcp
dhcp.@dhcp[0].interface=loopback
dhcp.@dhcp[0].start=2
dhcp.@dhcp[0].limit=2
dhcp.@dhcp[0].leasetime=1h
dhcp.@dhcp[0].force=1
dhcp.@dhcp[0].ignore=0
dhcp.@host[1]=host
dhcp.@dhcp[1]=dhcp
dhcp.@dhcp[1].interface=loopback
dhcp.@dhcp[1].start=2
dhcp.@dhcp[1].limit=2
dhcp.@dhcp[1].leasetime=1h
dhcp.@dhcp[1].force=1
dhcp.@dhcp[1].ignore=0
dhcp.@host[2]=host
dhcp.@host[2].ip=127.0.0.2
dhcp.@host[2].mac=00:00:00:00:00:00
dhcp.@host[2].name=lo-alias
dhcp.@dhcp[2]=dhcp
dhcp.@dhcp[2].interface=loopback
dhcp.@dhcp[2].start=2
dhcp.@dhcp[2].limit=2
dhcp.@dhcp[2].leasetime=1h
dhcp.@dhcp[2].force=1
dhcp.@dhcp[2].ignore=0

IMHO this should output 'loopback'

root@box:~ -/root- uci get dhcp.@dhcp[2].interface
wan

after some guessing:

root@box:~ -/root- uci get dhcp.@dhcp[4].interface
loopback

i'am lost..why this?

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by nbd

i cannot reproduce this. which openwrt version were you using with this?

comment:2 Changed 4 years ago by bittorf@…

r39139 - i will try to reproduce. there are a lot of "uci add/uci del" actions during startup, some sort of 'live'-configuration/auto-provisioning...

comment:3 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 new .
Author


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

 
Note: See TracTickets for help on using tickets.