Replace SymLinkOption type name to variable

This commit is contained in:
Emmanuel Garette 2019-12-22 08:38:43 +01:00
parent f19a427f46
commit 2f8fc054d0
2 changed files with 24 additions and 23 deletions

View File

@ -58,10 +58,10 @@
<!ATTLIST action actionlist CDATA #IMPLIED> <!ATTLIST action actionlist CDATA #IMPLIED>
<!-- for apache action --> <!-- for apache action -->
<!ATTLIST action apache_path CDATA #IMPLIED> <!ATTLIST action apache_path CDATA #IMPLIED>
<!ATTLIST action apache_path_type (FilenameOption|SymLinkOption) "FilenameOption"> <!ATTLIST action apache_path_type (FilenameOption|SymLinkOption|variable) "FilenameOption">
<!-- for external action --> <!-- for external action -->
<!ATTLIST action url CDATA #IMPLIED> <!ATTLIST action url CDATA #IMPLIED>
<!ATTLIST action url_type (URLOption|SymLinkOption) "URLOption"> <!ATTLIST action url_type (URLOption|SymLinkOption|variable) "URLOption">
<!-- for form action --> <!-- for form action -->
<!ATTLIST action save (True|False) "False"> <!ATTLIST action save (True|False) "False">
@ -89,12 +89,12 @@
<!ATTLIST service_access service CDATA #REQUIRED > <!ATTLIST service_access service CDATA #REQUIRED >
<!ELEMENT port (#PCDATA)> <!--port_type--> <!ELEMENT port (#PCDATA)> <!--port_type-->
<!ATTLIST port port_type (PortOption|SymLinkOption) "PortOption"> <!ATTLIST port port_type (PortOption|SymLinkOption|variable) "PortOption">
<!ATTLIST port service_accesslist CDATA #IMPLIED > <!ATTLIST port service_accesslist CDATA #IMPLIED >
<!ATTLIST port protocol (tcp|udp) "tcp"> <!ATTLIST port protocol (tcp|udp) "tcp">
<!ELEMENT tcpwrapper (#PCDATA)> <!--tcpwrapper_type--> <!ELEMENT tcpwrapper (#PCDATA)> <!--tcpwrapper_type-->
<!ATTLIST tcpwrapper tcpwrapper_type (UnicodeOption|SymLinkOption) "UnicodeOption"> <!ATTLIST tcpwrapper tcpwrapper_type (UnicodeOption|SymLinkOption|variable) "UnicodeOption">
<!ATTLIST tcpwrapper service_accesslist CDATA #IMPLIED > <!ATTLIST tcpwrapper service_accesslist CDATA #IMPLIED >
<!ELEMENT service_restriction (ip*)> <!ELEMENT service_restriction (ip*)>
@ -102,42 +102,42 @@
<!ELEMENT ip (#PCDATA)> <!--ip_type--> <!ELEMENT ip (#PCDATA)> <!--ip_type-->
<!ATTLIST ip service_restrictionlist CDATA #IMPLIED > <!ATTLIST ip service_restrictionlist CDATA #IMPLIED >
<!ATTLIST ip ip_type (NetworkOption|SymLinkOption) "NetworkOption"> <!ATTLIST ip ip_type (NetworkOption|SymLinkOption|variable) "NetworkOption">
<!ATTLIST ip interface_type (UnicodeOption|SymLinkOption) "UnicodeOption"> <!ATTLIST ip interface_type (UnicodeOption|SymLinkOption|variable) "UnicodeOption">
<!ATTLIST ip interface CDATA #REQUIRED> <!--interface_type--> <!ATTLIST ip interface CDATA #REQUIRED> <!--interface_type-->
<!ATTLIST ip netmask_type (NetmaskOption|SymLinkOption) "NetmaskOption"> <!ATTLIST ip netmask_type (NetmaskOption|SymLinkOption|variable) "NetmaskOption">
<!ATTLIST ip netmask CDATA "255.255.255.255"> <!--netmask_type--> <!ATTLIST ip netmask CDATA "255.255.255.255"> <!--netmask_type-->
<!ELEMENT interface (#PCDATA)> <!ELEMENT interface (#PCDATA)>
<!ATTLIST interface interfacelist CDATA #IMPLIED > <!ATTLIST interface interfacelist CDATA #IMPLIED >
<!ATTLIST interface linkto CDATA #REQUIRED > <!ATTLIST interface linkto CDATA #REQUIRED >
<!ATTLIST interface ip CDATA #REQUIRED> <!--SymLinkOption--> <!ATTLIST interface ip CDATA #REQUIRED> <!--variable-->
<!ATTLIST interface ip_type (SymLinkOption) "SymLinkOption"> <!ATTLIST interface ip_type (SymLinkOption|variable) "variable">
<!ATTLIST interface mask CDATA #REQUIRED> <!--SymLinkOption--> <!ATTLIST interface mask CDATA #REQUIRED> <!--variable-->
<!ATTLIST interface mask_type (SymLinkOption) "SymLinkOption"> <!ATTLIST interface mask_type (SymLinkOption|variable) "variable">
<!ATTLIST interface bcast CDATA #IMPLIED> <!--SymLinkOption--> <!ATTLIST interface bcast CDATA #IMPLIED> <!--variable-->
<!ATTLIST interface bcast_type (SymLinkOption) "SymLinkOption"> <!ATTLIST interface bcast_type (SymLinkOption|variable) "variable">
<!ATTLIST interface gateway CDATA #IMPLIED> <!--SymLinkOption--> <!ATTLIST interface gateway CDATA #IMPLIED> <!--variable-->
<!ATTLIST interface gateway_type (SymLinkOption) "SymLinkOption"> <!ATTLIST interface gateway_type (variable) "variable">
<!ATTLIST interface method (bridge|macvlan) "macvlan" > <!ATTLIST interface method (bridge|macvlan) "macvlan" >
<!ATTLIST interface redefine (True|False) "False"> <!ATTLIST interface redefine (True|False) "False">
<!ELEMENT host EMPTY > <!ELEMENT host EMPTY >
<!ATTLIST host hostlist CDATA #IMPLIED > <!ATTLIST host hostlist CDATA #IMPLIED >
<!ATTLIST host name CDATA #REQUIRED > <!--SymLinkOption--> <!ATTLIST host name CDATA #REQUIRED > <!--variable-->
<!ATTLIST host name_type (SymLinkOption) "SymLinkOption"> <!ATTLIST host name_type (SymLinkOption|variable) "variable">
<!ATTLIST host ip CDATA #REQUIRED > <!--SymLinkOption--> <!ATTLIST host ip CDATA #REQUIRED > <!--variable-->
<!ATTLIST host ip_type (SymLinkOption) "SymLinkOption"> <!ATTLIST host ip_type (SymLinkOption|variable) "variable">
<!ATTLIST host crossed (True|False) "True" > <!ATTLIST host crossed (True|False) "True" >
<!ATTLIST host comment CDATA #IMPLIED > <!ATTLIST host comment CDATA #IMPLIED >
<!ELEMENT fstab EMPTY > <!ELEMENT fstab EMPTY >
<!ATTLIST fstab name CDATA #REQUIRED> <!--name_type--> <!ATTLIST fstab name CDATA #REQUIRED> <!--name_type-->
<!ATTLIST fstab name_type (FilenameOption|SymLinkOption) "FilenameOption"> <!ATTLIST fstab name_type (FilenameOption|SymLinkOption|variable) "FilenameOption">
<!ATTLIST fstab type (bind|normal) "bind"> <!ATTLIST fstab type (bind|normal) "bind">
<!ATTLIST fstab fstype (auto|ext3|ext4|nfs|smb) "auto"> <!ATTLIST fstab fstype (auto|ext3|ext4|nfs|smb) "auto">
<!ATTLIST fstab mount_point CDATA #IMPLIED> <!--mount_point_type--> <!ATTLIST fstab mount_point CDATA #IMPLIED> <!--mount_point_type-->
<!ATTLIST fstab mount_point_type (FilenameOption|SymLinkOption) "FilenameOption"> <!ATTLIST fstab mount_point_type (FilenameOption|SymLinkOption|variable) "FilenameOption">
<!ATTLIST fstab options CDATA #IMPLIED> <!ATTLIST fstab options CDATA #IMPLIED>
<!ATTLIST fstab checks CDATA #IMPLIED> <!ATTLIST fstab checks CDATA #IMPLIED>
<!ATTLIST fstab fstablist CDATA #IMPLIED> <!ATTLIST fstab fstablist CDATA #IMPLIED>
@ -149,7 +149,7 @@
<!ELEMENT file EMPTY> <!ELEMENT file EMPTY>
<!ATTLIST file name CDATA #REQUIRED > <!ATTLIST file name CDATA #REQUIRED >
<!ATTLIST file name_type (UnicodeOption|SymLinkOption) "UnicodeOption"> <!ATTLIST file name_type (UnicodeOption|SymLinkOption|variable) "UnicodeOption">
<!ATTLIST file source CDATA #IMPLIED> <!ATTLIST file source CDATA #IMPLIED>
<!ATTLIST file mode CDATA #IMPLIED > <!ATTLIST file mode CDATA #IMPLIED >
<!ATTLIST file owner CDATA #IMPLIED > <!ATTLIST file owner CDATA #IMPLIED >

View File

@ -64,7 +64,8 @@ FORCE_CHOICE = {'oui/non': ['oui', 'non'],
'schedule': ['none', 'daily', 'weekly', 'monthly'], 'schedule': ['none', 'daily', 'weekly', 'monthly'],
'schedulemod': ['pre', 'post']} 'schedulemod': ['pre', 'post']}
KEY_TYPE = {'SymLinkOption': 'symlink', KEY_TYPE = {'variable': 'symlink',
'SymLinkOption': 'symlink',
'PortOption': 'port', 'PortOption': 'port',
'UnicodeOption': 'string', 'UnicodeOption': 'string',
'NetworkOption': 'network', 'NetworkOption': 'network',