Project

General

Profile

20_dhcrelay.xml

Joël Cuissinat, 01/07/2013 12:08 PM

Download (2.02 KB)

 
1
<?xml version="1.0" encoding="utf-8"?>
2

    
3
<creole>
4
    <files>
5
        <service servicelist='dhrelay'>isc-dhcp-relay</service>
6
        <file filelist='dhrelay' name='/etc/default/isc-dhcp-relay'/>
7
    </files>
8
    <variables>
9
        <family name='services'>
10
            <variable name='activer_dhcprelay' type='oui/non' description='Activer le relai DHCP'>
11
                <value>non</value>
12
            </variable>
13
        </family>
14
    <family name='relai dhcp'>
15
        <variable name='dhcrelay_interfaces' type='string' description='Interface des clients DHCP' multi='True'>
16
            <value>all</value>
17
        </variable>
18
        <variable name='dhcrelay_vlan' type='number' description='Numéro de VLAN des clients DHCP'/>
19
        <variable name='dhcrelay_server_interface' type='string' description='Interface du serveur DHCP'>
20
            <value>eth3</value>
21
        </variable>
22
        <variable name='adresse_ip_dhcp_dhcrelay' type='ip' description='Adresse IP du serveur DHCP à relayer'/>
23
    </family>
24
    <separators/>
25
    </variables>
26
    <constraints>
27
        <check name='valid_enum' target='dhcrelay_interfaces'>
28
            <param>['all', 'eth1', 'eth2', 'eth3', 'eth4']</param>
29
            <param name="checkval">False</param>
30
        </check>
31
        <check name='valid_enum' target='dhcrelay_server_interface'>
32
            <param>['eth1', 'eth2', 'eth3', 'eth4']</param>
33
            <param name="checkval">False</param>
34
        </check>
35
        <condition name='hidden_if_in' source='activer_dhcprelay'>
36
            <param>non</param>
37
            <target type='filelist'>dhrelay</target>
38
            <target type='servicelist'>dhrelay</target>
39
            <target type='family'>relai dhcp</target>
40
        </condition>
41
        <!--<fill name='calc_val' target='adresse_ip_dhcp_dhcrelay'>
42
            <param type='eole'>ip_serveur_scribe_dmz</param>
43
        </fill>-->
44
        <group master='dhcrelay_interfaces'>
45
            <slave>dhcrelay_vlan</slave>
46
        </group>
47
    </constraints>
48
    <help/>
49
</creole>
50
<!-- vim: ts=4 sw=4 expandtab
51
-->