Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ip=<uci:value src="network.lan.ipaddr" />
- ip=<uci:value src="network.@interface[-1].ipaddr "/>
- ip=<uci:value src="network.@interface[-1].fail" default="foo"/>
- <uci:foreach src="network" type="interface" id="net" >
- ip=<uci:value src=".ipaddr" ref="net" />
- ip=<uci:value src=".ipaddr" ref="foo" default="abc"/>
- ip=<uci:value src=".ipaddr"/>
- </uci:foreach>
- <uci:foreach src="network" type="interface" id="net">
- username=<uci:value src=".username" def="foo"/>
- password=<uci:value src=".passwd" def="bar" ref="net"/>
- </uci:foreach>
- <!comment fooo>
- <uci:foreach src="network" type="interface" id="net">
- <uci:if src=".proto" match="dhcp">
- proto = dhcp
- </uci:if>
- <uci:if src=".proto" match="!dhcp">
- proto != dhcp
- </uci:if>
- <uci:if src=".proto" match="dhcp|static">
- proto == dhcp || proto == static
- </uci:if>
- <uci:if src=".proto" match="!dhcp&!static">
- proto != dhcp && proto != static
- </uci:if>
- </uci:foreach>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement