Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. ip=<uci:value src="network.lan.ipaddr" />
  2. ip=<uci:value src="network.@interface[-1].ipaddr "/>
  3. ip=<uci:value src="network.@interface[-1].fail" default="foo"/>
  4.  
  5. <uci:foreach src="network" type="interface" id="net" >
  6. ip=<uci:value src=".ipaddr" ref="net" />
  7. ip=<uci:value src=".ipaddr" ref="foo" default="abc"/>
  8. ip=<uci:value src=".ipaddr"/>
  9. </uci:foreach>
  10.  
  11. sss
  12.  
  13. <uci:foreach src="network" type="interface" id="net">
  14. username=<uci:value src=".username" def="foo"/>
  15. password=<uci:value src=".passwd" def="bar"/>
  16. </uci:foreach>
  17.  
  18. a
  19. <!foooooi>
  20. b
  21. <uci:foreach src="network" type="interface" id="net">
  22. <uci:if src=".proto" match="dhcp">
  23. proto = dhcp
  24. </uci:if>
  25. <uci:if src=".proto" match="!dhcp">
  26. proto != dhcp
  27. </uci:if>
  28. <uci:if src=".proto" match="dhcp|static">
  29. proto == dhcp || proto == static
  30. </uci:if>
  31. <uci:if src=".proto" match="!dhcp&!static">
  32. proto != dhcp && proto != static
  33. </uci:if>
  34. </uci:foreach>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement