Franco Fichtner
57bb583c1d
interfaces: add missing validation for previous #1052
2016-08-12 07:25:47 +02:00
Franco Fichtner
e86885cb04
interfaces: fix clearing the dhcp config file when override file is gone #1052
2016-08-12 06:44:17 +02:00
Ad Schellevis
3e0be39524
Merge pull request #1133 from pv2b/patch-1
...
(base) Do not encourage overriding getModel()
2016-08-11 21:43:48 +02:00
pv2b
bf79d5a625
(base) Do not encourage overriding getModel()
...
Overriding getModel() is not to be done lightly. The code relies on the same object being there through multiple calls to getModel(). Any overriding methods should preserve this same behavior. For this reason, we should not encourage tinkering with this in a comment, better be silent on the matter.
2016-08-11 21:41:28 +02:00
Ad Schellevis
a90e2ddc31
(mvc) missed a spot
2016-08-11 21:20:39 +02:00
Ad Schellevis
618036bc55
(mvc) refactor ApiMutableModelControllerBase for https://github.com/opnsense/core/pull/1126
2016-08-11 21:02:11 +02:00
Ad Schellevis
5c68c8f264
Merge pull request #1126 from pv2b/ApiMutableTableModelControllerBase
...
ApiMutableTableModelControllerBase
2016-08-11 20:00:05 +02:00
Ad Schellevis
6a5948df31
(unittests) add versioning and migrations to unittests
2016-08-11 18:48:16 +02:00
Ad Schellevis
653968818f
(mvc) add version to model spec and add initial migration support
2016-08-11 18:46:44 +02:00
Ad Schellevis
d46f43b083
(model) fix typo
2016-08-11 16:45:06 +02:00
Ad Schellevis
14d53f5b8d
(legacy) ditch compare_interface_friendly_names
2016-08-11 10:58:44 +02:00
Ad Schellevis
26a6680224
(filter.inc) integrate filter_rules_compare into filter_rules_sort
2016-08-11 10:48:00 +02:00
Ad Schellevis
48769e27ae
sort interfaces in legacy_config_get_interfaces, https://forum.opnsense.org/index.php?topic=3514
2016-08-10 20:48:54 +02:00
Franco Fichtner
738f733d1d
rc: no use starting sshd before user sync
2016-08-10 19:14:02 +02:00
Per von Zweigbergk
053f7f89cd
(base) Added hooks that can be used by controllers to take actions at the appropriate time during an action
2016-08-10 14:39:32 +02:00
Franco Fichtner
2f08855258
mvc: style sweep
2016-08-10 13:14:28 +02:00
Fabian Franz
6411baeaa1
translation; closes #1069
...
Omit the console changes, we are not prepared for improving
the translation there.
2016-08-10 08:34:05 +02:00
Franco Fichtner
63e1ff587d
services: explain unbound forward mode
...
PR: https://forum.opnsense.org/index.php?topic=3502
2016-08-10 08:10:20 +02:00
Ad Schellevis
58010a4ccd
(ipsec) change default Negotiation Mode, closes https://github.com/opnsense/core/issues/1128
2016-08-09 19:50:26 +02:00
Per von Zweigbergk
44eb7531f9
(base) Added missing $this->
2016-08-09 19:43:24 +02:00
Per von Zweigbergk
7600727f6b
(base) Fixed a mistyped Paamayim Nekudotayim
2016-08-09 19:35:44 +02:00
Per von Zweigbergk
95c39134d9
(Base) Properly update argument list for save after implementing
2016-08-09 19:27:37 +02:00
Per von Zweigbergk
d48d419106
(Base) Refactor to split out saving/validation logic
2016-08-09 19:27:15 +02:00
Per von Zweigbergk
051947869f
(base) Fixups of ApiMutableTableModelControllerBase
...
Changed base class from ApiControllerBase to ApiMutableModelControllerBase
Fixed incorrect string concatenation (+ instead of .) in getNodes()
Removed stray parentheses
Extracted static fields for gridFields and gridDefaultSort
2016-08-09 16:34:44 +02:00
Per von Zweigbergk
ea9be4a9ee
(base) Get rid of spurious origin code
2016-08-09 16:34:44 +02:00
Per von Zweigbergk
a45758ff84
(base) Properly check for null in getNodeByUUID
2016-08-09 16:34:44 +02:00
pv2b
58bfcf6e4a
style fix
2016-08-09 16:34:44 +02:00
pv2b
fbe7cd2922
Fixed typos
2016-08-09 16:34:44 +02:00
pv2b
2d303f1573
ApiMutableTableModelControllerBase implemented methods
2016-08-09 16:34:44 +02:00
Per von Zweigbergk
bd7f2f3a08
First version of ApiMutableTableModelControllerBase class
2016-08-09 16:34:44 +02:00
Franco Fichtner
557e72712b
rc: clean up a bit after #1072
...
o Recovery console is weird, just use CTRL-C from anywhere
o Simplify the early installer invoke by probing for keypress
o Display a brief message when installer+SSH is active
2016-08-09 07:58:49 +02:00
Franco Fichtner
d4ecff6f9c
rc: add sshd for installer (2/2); closes #1072
2016-08-09 00:07:13 +02:00
Franco Fichtner
bde361f78a
pkg: also register rc.installer as shell on install
2016-08-08 19:08:45 +02:00
Franco Fichtner
8ea003a058
rc: set up additional partition for installer logs
2016-08-08 18:39:16 +02:00
Ad Schellevis
1e6406e036
(ids) refactor for https://github.com/opnsense/core/pull/1124
2016-08-08 18:38:41 +02:00
Ad Schellevis
9387232690
(unittests) extend BaseModel tests for https://github.com/opnsense/core/issues/864
2016-08-08 18:12:40 +02:00
Franco Fichtner
710f00e842
rc: add installer user (1/2)
...
Prefer LiveCD boot during install media boot, then
set up an extra user for installation. This user
shall be reached via console or SSH soon enough for
a sort of remote install experience.
PR: https://forum.opnsense.org/index.php?topic=3403
Inspired by: DragonFlyBSD (and we're using its installer anyway!)
2016-08-08 18:04:13 +02:00
Ad Schellevis
da57a85350
(model, BaseField) cast __toString to string, prevents "__toString() must return a string value"
2016-08-08 17:55:54 +02:00
Ad Schellevis
5bbced8090
Revert "(mvc) remove unused getFlatNodes"
...
This reverts commit 6c6b861e778704d2aa2d06b569a1e3071f065465.
2016-08-08 17:31:03 +02:00
Ad Schellevis
6c6b861e77
(mvc) remove unused getFlatNodes
2016-08-08 17:23:39 +02:00
Ad Schellevis
265ed9dc9e
(proxy) refactor to use statics in ApiMutableModelControllerBase
2016-08-08 16:17:55 +02:00
Ad Schellevis
4aa4570eea
(mvc) merge ApiModelControllerBase and ApiMutableModelControllerBase + define class statics properly. as discussed at https://github.com/opnsense/core/pull/1124
2016-08-08 16:16:01 +02:00
Ad Schellevis
beff7772aa
(proxy) extend ApiMutableModelControllerBase
2016-08-08 11:04:54 +02:00
Ad Schellevis
7a67a2c03d
(mvc) some refactoring for https://github.com/opnsense/core/pull/1124
2016-08-08 10:47:40 +02:00
Franco Fichtner
3235ee2690
plugins: rename variable to better reflect its purpose
2016-08-08 09:57:19 +02:00
Franco Fichtner
ecdcc4b736
plugins: tweak interface plugging
...
PPPoE wasn't removed, which led to some refactoring to find
out why. The outcome is the same, but works a little bit
different now. While there, make it possible to omit the
config write in case we are going to call write_config()
shortly after anyway.
This will also be necessary for the legacy VPN plugins.
2016-08-08 09:07:35 +02:00
Per von Zweigbergk
7e69508177
(base) Create ApiMutableModelControllerBase class for ease of implementing API setters
2016-08-08 09:05:49 +02:00
Per von Zweigbergk
29975dc054
(base) Create ApiModelControllerBase class for ease of implementing API getters
2016-08-08 09:05:18 +02:00
Franco Fichtner
8b191e827d
services: fix a crash report in load balancer
2016-08-07 19:23:15 +02:00
Franco Fichtner
84b0488810
vpn: improve client links visibility
...
PR: https://forum.opnsense.org/index.php?topic=3480.0
2016-08-07 19:08:07 +02:00