aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2016-04-10 18:12:18 +0200
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2016-04-10 18:48:40 +0200
commitd859a30cd1ccc78caee035ec29ec5e772f773c11 (patch)
tree0968a3857783328d4a5c59105c850fdeb5e9b3be
parentAdd support for lists (diff)
downloadansible-uci-d859a30cd1ccc78caee035ec29ec5e772f773c11.tar.xz
Add documentation of lists
-rw-r--r--uci.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/uci.py b/uci.py
index 0d98f93..440b2f4 100644
--- a/uci.py
+++ b/uci.py
@@ -85,6 +85,12 @@ EXAMPLES = '''
# Delete option in named section dhcp.computer.ip (doesn't delete empty section)
- uci: p=dhcp s=computer name=ip val=1.0.0.0 state=absent
+# Add item to list in named section dhcp.lan.dhcp_option=4,1.0.0.15
+- uci: p=dhcp s=lan name=dhcp_option val=4,1.0.0.15 item=list
+
+# Delete item from list in named section dhcp.lan.dhcp_option=4,1.0.0.15
+- uci: p=dhcp s=lan name=dhcp_option val=4,1.0.0.5 item=list state=absent
+
# Create new named section of type host
- uci: p=dhcp s=computer2 type=host