<?xml version = '1.0'?>

<!--Revision_History>

Note: This should probably move out of there, as it has to be parsed by
      the menu daemon.

Sep 11 2006: Cleanup
   Removed general MENUD notes and examples into daemon/menud/docs/README.txt.

Jul 24 2006: Menu reorganization (MRB)
   - Moved NETWORK MENU right after User Login
   - Added Firmware Version Menu Item as the last item. This will be changed to
     a sub menu with firmware selection capability in the future.
   - Renamed Menu Login to User Login
   - Renamed eth0 to Ethernet IP Address
   - Renamed eth1 to GIGE IP Address
   - Renamed Gateway IPA to Gateway IP Address
   - Renamed NTP IPA to NTP IP Address
10/06/06 GMC
  - Added MIRROR and TZ
   
  
</Revision_History-->

<!--Note> MENU STARTS HERE! </Note-->

<menudefinition>
  <menu>
  <label>System Main Menu</label>

  <mitable>
    <label>SYSTEM MENU</label>
    <width>20</width>
    <parallel>false</parallel>
    <rows>1</rows>
    <variable>
      <name>SYSTEM MENU</name>
      <mode>menudef</mode>
      <value> </value>
      <external>
        <read/>
      </external>
    </variable>
    <menu>
      <label>SYSTEM MENU</label>
        <milogin>
          <label>User Login</label>
          <width>20</width>
          <variable>
            <name>GEM Platform</name>
            <mode>menudef</mode>
            <value>none</value>
            <external>
              <read/>
              <write/>
            </external>
          </variable>
        </milogin>
        
      <minumber>
        	<label>Login Duration(min)</label>
         <minimum>0</minimum>
         <maximum>9</maximum>
         <increment>1</increment>
         <base>10</base>
         <variable>
            <name>LR</name>
            <mode>msgq1</mode>
            <external>
               <read>
               	<pollratems>1000</pollratems>
               </read>                           
            	<write/>
         	</external>
      	</variable>
      </minumber>

      <mitable> 
        <label>NETWORK MENU</label>
        <width>20</width>
        <parallel>false</parallel>
        <rows>1</rows>
        <variable>
          <name>NETWORK MENU</name>
          <mode>menudef</mode>
          <value> </value>
          <external>
            <read/>
          </external>
        </variable> 

        <menu>
          <label>Network Configurations</label>
          <miipa>
            <label>Ethernet IP Address</label>
            <variable>
              <name>IP 0</name>
              <mode>msgq1</mode>
              <external>
                <write/>
                <read>
                  <pollratems>1000</pollratems>
                </read>
              </external>
            </variable>
          </miipa>

          <miipa>
            <label>Ethernet IP Mask</label>
            <variable>
              <name>IM 0</name>
              <mode>msgq1</mode>
              <external>
                <write/>
                <read>
                  <pollratems>1000</pollratems>
                </read>
              </external>
            </variable>
          </miipa>

          <michoice>
             <label>Ethernet DHCP</label>
             <choices>
                <choice>OFF</choice>
                <choice>ON</choice>
             </choices>
             <variable>
                <name>dhcp eth0</name>
                <mode>msgq1</mode>
                <external>
                   <read>
                      <pollratems>3000</pollratems>
                   </read>
                   <write/>
                </external>
             </variable>
          </michoice>

          <miipa>
            <label>GIGE IP Address</label>
            <variable>
              <name>IP 1</name>
              <mode>msgq1</mode>
              <external>
                <write/>
                <read>
                  <pollratems>1000</pollratems>
                </read>
              </external>
            </variable>
          </miipa>

          <miipa>
            <label>GIGE IP Mask</label>
            <variable>
              <name>IM 1</name>
              <mode>msgq1</mode>
              <external>
                <write/>
                <read>
                  <pollratems>1000</pollratems>
                </read>
              </external>
            </variable>
          </miipa>

          <michoice>
             <label>GIGE DHCP</label>
             <choices>
                <choice>OFF</choice>
                <choice>ON</choice>
             </choices>
             <variable>
                <name>dhcp eth1</name>
                <mode>msgq1</mode>
                <external>
                   <read>
                      <pollratems>3000</pollratems>
                   </read>
                   <write/>
                </external>
             </variable>
          </michoice>

          <miipa>
            <label>Gateway IP Address</label>
            <variable>
              <name>GI</name>
              <mode>msgq1</mode>
              <external>
                <write/>
                <read>
                  <pollratems>1000</pollratems>
                </read>
              </external>
            </variable>
          </miipa>
        </menu>
      </mitable> <!--note>encapsulates network menu.</note-->     
  
      <mitable> 
        <label>TIME MENU</label>
        <width>20</width>
        <parallel>false</parallel>
        <rows>1</rows>
        <variable>
          <name>TIME TABLE</name>
          <mode>menudef</mode>
          <value> </value>
          <external>
            <read/>
          </external>
        </variable>
	    
        <menu>
          <label>TIME AND ZONE</label>
          <mistring>
            <label>Time</label>
            <width>20</width>
            <variable>
              <name>TI</name>
              <mode>msgq1</mode>
              <external>
                <write>
		          <allowArgs/>
		        </write>  
                <read>
                  <pollratems>1000</pollratems>
                </read>
              </external>
            </variable>
          </mistring>
        
          <mistring>
            <label>Timezone</label>
            <width>20</width>
            <variable>
              <name>TZ</name>
              <mode>msgq1</mode>
              <external>
                <read>
                  <pollratems>5000</pollratems>
                </read>
                <write/>
              </external>
            </variable>
          </mistring>
        </menu>

      </mitable>  <!--note>encapsulates time menu.</note-->     
       
      <mitable> 
        <label>NTP MENU</label>
        <width>20</width>
        <parallel>false</parallel>
        <rows>1</rows>
        <variable>
          <name>NTP MENU</name>
          <mode>menudef</mode>
          <value> </value>
          <external>
            <read/>
          </external>
        </variable>
	    
        <menu>
          <label>NTP MENU</label>
          <mistring>
            <label>NTP Status</label>
            <width>10</width>
            <variable>
              <name>NIP STATUS</name>
              <mode>msgq1</mode>
              <external>
                <read>
                  <pollratems>30000</pollratems>
                </read>
              </external>
            </variable>
          </mistring>
	      
          <miipa>
            <label>NTP IP Address</label>
            <variable>
              <name>NIP 0</name>
              <mode>msgq1</mode>
              <external>
                <read>
                  <pollratems>1000</pollratems>
                </read>
                <write/>
              </external>
            </variable>
          </miipa>
        </menu>
      </mitable>   <!--note>encapsulates NTP menu.</note-->     
	    
      <milist>
        <label>ALARM MENU</label>
        <width>20</width>
        <variable>
          <name>AL</name>
          <mode>msgq1</mode>
          <external>
            <read>
              <pollratems>10000</pollratems>
            </read>
          </external>
        </variable>
      </milist>   <!--note>encapsulates Alarm menu.</note-->     


      <mitable> <!--note>encapsulates MIRROR menu.</note-->
        <label>MIRROR MENU</label>
        <width>20</width>
        <parallel>false</parallel>
        <rows>1</rows>
        <variable>
          <name>MIRROR MENU</name>
          <mode>menudef</mode>
          <value> </value>
          <external>
            <read/>
          </external>
        </variable>

        <menu>     
          <label>MIRROR MENU</label>
          <michoice>
            <label>HostMode</label>
            <choices>
              <choice>MirrorClient</choice>
              <choice>MirrorList</choice>
              <choice>Client</choice>
            </choices>
            <variable>
              <name>HM</name>
              <mode>msgq1</mode>
              <external>
                <read>
                  <pollratems>5000</pollratems>
                </read>
                <write />
              </external>
            </variable>
          </michoice>
	      
          <miipa>
            <label>Host IP Address</label>
            <variable>
              <name>HI</name>
              <mode>msgq1</mode>
              <external>
                <read>
                  <pollratems>5000</pollratems>
                </read>
                <write />
              </external>
            </variable>
          </miipa>

          <mistring>
            <label>Client Name,Password</label>
            <width>20</width>
            <variable>
              <name>CW</name>
              <mode>msgq1</mode>
              <external>
                <read>
                  <pollratems>5000</pollratems>
                </read>
                <write />
              </external>
            </variable>
          </mistring>

        </menu>
      </mitable>   <!--note>encapsulates MIRROR menu.</note-->     

      <michoice>
        <label>Com2 Settings</label>
           <choices>
              <choice>115200 8 1 NONE</choice>
              <choice>57600 8 1 NONE</choice>
              <choice>38400 8 1 NONE</choice>
              <choice>19200 8 1 NONE</choice>
              <choice>9600 8 1 NONE</choice>
           </choices>   
        <variable>
          <name>COM2</name>
          <mode>msgq1</mode>
          <external>
            <read>
              <pollratems>10000</pollratems>
            </read>
            <write>
               <allowArgs/>
            </write> 
          </external>
        </variable>
      </michoice> 
	    
      <mistring>
        <label>Firmware Version</label>
        <width>20</width>
        <variable>
          <name>BA</name>
          <mode>msgq1</mode>
          <external>
            <read>
              <pollratems>10000</pollratems>
            </read>
          </external>
        </variable>
      </mistring>    
   	   
    </menu>
  </mitable>  <!--note>encapsulates system menu.</note-->     
  
  </menu>
</menudefinition>

