home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Thomson (Residential)
/
TGSTPv7203.iso
/
mac
/
HIW
/
xml
/
mod_upgrade_configinterface.xml
< prev
next >
Wrap
Extensible Markup Language
|
2008-02-11
|
2KB
|
61 lines
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fsm SYSTEM "fsm.dtd">
<!--
Configures the interface to which the device is connected with
a static IP address, and searches for the device over MDAP.
If the interface was already staticly configured, it remains
the same.
Application properties:
- device: The device.
Output properties:
- oldInterface: The interface as it was before reconfiguring.
Exit events:
- finished: Device was found over the static interface.
- notFound: Device not found.
-->
<fsm>
<states>
<state type="compare" name="checkDhcpEnabled" weight="1">
<property key="input1" value="true"/>
<property key="comparisonType" value="equal"/>
</state>
<state type="configInterface" name="configInterface" weight="1">
<property key="enableDhcp" value="false"/>
</state>
<state type="ipConfig" name="ipConfig" weight="5"/>
<state type="actionDiscoverDevice" name="discover" weight="10">
<property key="timeout" value="20000"/>
</state>
</states>
<events>
<event name="finished"/>
<event name="notFound"/>
</events>
<transitions>
<transition startstate="checkDhcpEnabled">
<propertymap target="fsm.oldInterface" function="property($app.device,'lanInterface')"/>
<propertymap target="input2" function="property($fsm.oldInterface, 'dhcpEnabled')"/>
</transition>
<transition fromstate="checkDhcpEnabled" tostate="configInterface" event="true">
<propertymap target="interface" function="$fsm.oldInterface"/>
</transition>
<transition fromstate="configInterface" tostate="ipConfig" event="finished">
<propertymap target="newInterface" function="$interface"/>
</transition>
<transition fromstate="ipConfig" tostate="discover" event="interfaceUpdated|needReboot">
<propertymap target="device" function="$app.device"/>
</transition>
<transition fromstate="checkDhcpEnabled" tostate="discover" event="false">
<propertymap target="device" function="$app.device"/>
</transition>
<transition fromstate="discover" toexit="finished" event="finished"/>
<transition fromstate="discover" toexit="notFound" event="failed"/>
</transitions>
</fsm>