2018-01-30 10:40:13 +00:00
|
|
|
===============
|
|
|
|
Creating Models
|
|
|
|
===============
|
|
|
|
|
|
|
|
A model represents the data which the application will use and takes
|
|
|
|
care of the interaction to that data. In OPNsense most of the relevant
|
2018-11-08 19:59:18 +00:00
|
|
|
data is physically stored in an XML structure (config.xml). The primary
|
2018-01-30 10:40:13 +00:00
|
|
|
goal for OPNsense models is to structure the use of configuration data,
|
|
|
|
by creating a clear abstraction layer.
|
|
|
|
|
|
|
|
In this chapter we will explain how models are designed and build.
|
|
|
|
|
|
|
|
|
2019-11-03 18:47:19 +00:00
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|
|
|
|
:titlesonly:
|
|
|
|
:glob:
|
2018-01-30 10:40:13 +00:00
|
|
|
|
2019-11-03 18:47:19 +00:00
|
|
|
models_design
|
|
|
|
models_example
|
|
|
|
models_guidelines
|
|
|
|
models_fieldtypes
|
2019-11-14 16:09:59 +00:00
|
|
|
models_customfields
|
2019-11-03 18:47:19 +00:00
|
|
|
models_constraints
|