46 lines
5.4 KiB
Markdown
46 lines
5.4 KiB
Markdown
|
---
|
||
|
gitea: none
|
||
|
include_toc: true
|
||
|
---
|
||
|
# dictionaries/rougail/00-base.yml
|
||
|
|
||
|
```yaml
|
||
|
---
|
||
|
version: '1.1'
|
||
|
network_address_eth0:
|
||
|
description: Network address
|
||
|
type: network
|
||
|
netmask_address_eth0:
|
||
|
description: Netmask address
|
||
|
type: netmask
|
||
|
validators:
|
||
|
- type: jinja
|
||
|
jinja: |
|
||
|
{% if not _.netmask_address_eth0 | valid_in_network(_.network_address_eth0) %}
|
||
|
{{ _.netmask_address_eth0 }} is not a netmask for network {{ _.network_address_eth0 }}
|
||
|
{% endif %}
|
||
|
description: this mask is possible for the network
|
||
|
```
|
||
|
# Variables
|
||
|
|
||
|
| Variable | Description |
|
||
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||
|
| **network_address_eth0**<br/>[`network`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` | Network address. |
|
||
|
| **netmask_address_eth0**<br/>[`netmask`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` | Netmask address.<br/>**Validator**: this mask is possible for the network. |
|
||
|
|
||
|
|
||
|
# Example with mandatory variables not filled in
|
||
|
|
||
|
```yaml
|
||
|
---
|
||
|
network_address_eth0: 1.1.1.0
|
||
|
netmask_address_eth0: 255.255.255.0
|
||
|
```
|
||
|
# Example with all variables modifiable
|
||
|
|
||
|
```yaml
|
||
|
---
|
||
|
network_address_eth0: 1.1.1.0
|
||
|
netmask_address_eth0: 255.255.255.0
|
||
|
```
|