Advertisement
Guest User

Untitled

a guest
Feb 26th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 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. <uci:foreach src="network" type="interface" id="net">
  12. username=<uci:value src=".username" def="foo"/>
  13. password=<uci:value src=".passwd" def="bar" ref="net"/>
  14. </uci:foreach>
  15.  
  16. <!comment fooo>
  17.  
  18. <uci:foreach src="network" type="interface" id="net">
  19. <uci:if src=".proto" match="dhcp">
  20. proto = dhcp
  21. </uci:if>
  22. <uci:if src=".proto" match="!dhcp">
  23. proto != dhcp
  24. </uci:if>
  25. <uci:if src=".proto" match="dhcp|static">
  26. proto == dhcp || proto == static
  27. </uci:if>
  28. <uci:if src=".proto" match="!dhcp&!static">
  29. proto != dhcp && proto != static
  30. </uci:if>
  31. </uci:foreach>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement