- 15 Aug, 2016 6 commits
-
-
https://github.com/opnsense/core/issues/272Ad Schellevis authored
Constraints hook into the default validations, new constraints should derive from BaseConstraint. This commit contains the code needed to add constraints to our model and a unittest for the UniqueConstraint option. Add the following to a model field, to force uniqueness for a combination of keys: <Constraints> <check001> <!--validation name, unique within this field--> <message>number should be unique</message> <!--the message to output on validation failure --> <type>OPNsense\Base\Constraints\UniqueConstraint</type> <!--the class to construct, derived from OPNsense\Base\Constraints\BaseConstraint --> <addFields> <!--optional additional fields for the equation, defined in UniqueConstraint --> <field1>optfield</field1> </addFields> </check001> </Constraints>
-
Franco Fichtner authored
-
Franco Fichtner authored
If there is not enough space in /tmp, it's really nothing we can do about here. This is not an essential file.
-
Ad Schellevis authored
-
Ad Schellevis authored
-
Franco Fichtner authored
Taking the liberty to use this as an opportunity to kill the usage of "e-mail". Suggested by: @Antonio-Prado
-
- 14 Aug, 2016 5 commits
-
-
Ad Schellevis authored
-
Ad Schellevis authored
Improve error messages for API calls
-
Per von Zweigbergk authored
-
Per von Zweigbergk authored
Example before: {"errorMessage":"Undefined offset: 0 [8]"} Example after: {"errorMessage":"Error at \/usr\/local\/etc\/inc\/util.inc:952 - Undefined offset: 0 (errno=8)"}
-
-
- 13 Aug, 2016 9 commits
-
-
Franco Fichtner authored
While there, turn the probing upside down for general sanity: o Only pull dmesg output once o Pattern-match one pattern only o Anchor the match to the line start
-
Franco Fichtner authored
(get_interface_list) Properly handle an interface not appearing in dmesg
-
Per von Zweigbergk authored
-
Franco Fichtner authored
Also see: http://www.openssh.com/txt/release-7.0
-
Franco Fichtner authored
The console would refuse to assign an IP that was used by the PPTP or L2TP server (surprisingly not PPPoE). This rule changed during the MPD4 -> MDP5 migration, so remove that code. Also, the subnet check was never executed, good time to remove it as well.
-
Franco Fichtner authored
-
Franco Fichtner authored
Spotted by: @fabianfrz
-
Franco Fichtner authored
Reported by: @Antonio-Prado
-
Franco Fichtner authored
-
- 12 Aug, 2016 20 commits
-
-
Ad Schellevis authored
-
Ad Schellevis authored
-
Ad Schellevis authored
-
Ad Schellevis authored
-
Ad Schellevis authored
-
Ad Schellevis authored
-
Ad Schellevis authored
-
Ad Schellevis authored
-
Ad Schellevis authored
-
Ad Schellevis authored
(mvc) more work on migrations, fix autoloader, serialize to config when all steps for this model are finished
-
Franco Fichtner authored
-
Ad Schellevis authored
-
Ad Schellevis authored
(mvc) BaseModel add getVersion() to retrieve the running config version, commit changes to in memory config after every migration step. Errors will be send to syslog, current policy is to always upgrade and ignore migration errors. (there's not really a way back, other then undo pkg install and revert the full config)
-
Ad Schellevis authored
-
Ad Schellevis authored
(Base) Default to inf rows not 9999
-
Franco Fichtner authored
-
Franco Fichtner authored
-
Franco Fichtner authored
-
Franco Fichtner authored
-
Franco Fichtner authored
-