From d859a30cd1ccc78caee035ec29ec5e772f773c11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Ob=C5=AFrka?= Date: Sun, 10 Apr 2016 18:12:18 +0200 Subject: Add documentation of lists --- uci.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3