summaryrefslogtreecommitdiffstats
path: root/interfaces-model.lua
Commit message (Collapse)AuthorAgeFilesLines
* Interfaces: Added support for unknown options in a separate cfeTed Trask2012-12-061-7/+10
| | | | The previous implementation would display them as separate options with errors, and silently drop when writing
* Interfaces: Move iface structure to a separate file and use it in view to ↵Ted Trask2012-12-061-64/+7
| | | | | | | determine which options to display The previous method meant that each option was defined in both the model and in the view. Now, everything is defined in the model, and the view just hides / shows as desired.
* Interfaces - reorganize iface structure and always return full interface ↵Ted Trask2012-12-051-104/+124
| | | | | | | structure The model should report the entire form, not pieces at a time. The view can determine which options to show. Modified the validation and writing to interfaces file to only consider the valid options for given family/method.
* Interfaces - made iface a simple structure, rather than a classTed Trask2012-12-051-157/+100
| | | | The class was only confusing things. Removed several functions and made the rest simple local functions.
* Interfaces: removed unnecessary escapespecialcharacters callsTed Trask2012-12-041-5/+5
|
* Changed delete interfaces to use a select and properly return resultsTed Trask2012-12-041-15/+8
|
* Changed cfe from iface to name to match what it used to beTed Trask2012-12-041-9/+9
| | | | The ifup, ifdown, and delete actions should have taken the interface name as 'name', not 'iface', this was changed mistakenly.
* Change ifup/ifdown interface to select and validateTed Trask2012-12-041-18/+38
|
* Fix ifup / ifdown to capture the outputTed Trask2012-12-041-8/+8
|
* Updated for handle_form now passing self to get and set functionsTed Trask2012-04-281-15/+19
|
* Change all -controller.lua files to use new handle_form() functions found in ↵Zach LeBar2012-03-211-24/+74
| | | | acf_www-controller.lua instead of the controllerfunctions.lua version and also instead of redirect_to_referrer(). Made corresponding changes to vmail-model .lua to make everything work.
* Added 'ip tunnel' result to interfaces status.Ted Trask2010-03-101-0/+5
|
* Added get_interfaces function to model, bumped to 0.5.7v0.5.7Ted Trask2009-09-171-0/+16
| | | | New function used by new acf-iproute2-qos package
* Fixed interfaces bug in expert, did some reorg of code.ttrask2009-03-121-95/+57
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1727 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added escapespecialcharacters to format.lua to escape shell special ↵Ted Trask2009-01-211-5/+6
| | | | | | characters. Reviewed all calls to io.popen and os.execute to escape special characters. Fixed file uploads in openssl and ipsectools with viewfunctions.lua. Tried to fix openssl renew when subject contains special characters, but not done yet. git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1687 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Tested by removing expected packages, files, and directories. Fixed ↵Ted Trask2009-01-161-7/+2
| | | | | | resulting bugs. git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1683 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified interfaces to allow any character but ':' or '@' in interface name ↵Ted Trask2008-12-081-2/+2
| | | | | | when parsing 'ip addr'. This fixed problem with health/networkstats when unusual interface name exists. git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1629 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified interfaces to allow any non-space characters in interface name.Ted Trask2008-12-011-4/+6
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1615 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified interfaces to fix parsing of interfaces file. Allow '.' characters ↵Ted Trask2008-12-011-5/+6
| | | | | | in interface names and modify comments so they stay with the appropriate interface. git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1614 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added Restart Networking function to interfaces. Redirect to read after update.Ted Trask2008-10-131-0/+5
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1553 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added missing require statement in interfaces.Ted Trask2008-09-251-0/+2
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1521 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified interfaces model to add a function to parse ip addr.Ted Trask2008-08-201-0/+24
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1386 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Changed interfaces to use controllerfunctions.Ted Trask2008-07-021-2/+5
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1268 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Updated interfaces to use new cfe model, add more iface families, add more ↵Ted Trask2008-05-301-160/+318
| | | | | | flexibility to editing, show ip status, bring up/down interfaces, and general cleanup. git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1191 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified cfe, removing option, errtxt, and name, and adding label - This may ↵Ted Trask2008-04-301-1/+1
| | | | | | | | | | | | break things. Rewrote password module, adding model Modified authenticator to make password module work git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1052 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Cleaned up 'read' tab so it only allows read (no edit actions).Mika Havela2008-03-281-4/+26
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@856 ab2d0c66-481e-0410-8bed-d214d4d58bed
* new style of acf modulesv2.0Natanael Copa2007-07-271-0/+284
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@216 ab2d0c66-481e-0410-8bed-d214d4d58bed