<?xml version="1.0" encoding="UTF-8"?>
<definitions>
	<portType name="glossaryTerms">
    <!-- 查询时钟当前跟踪的主时钟ID -->
    <operation name="NSCMD_CFG_GET_PTP_GRANDMASTER" cmdid="36104" level="">
   	    <input>
   	    </input>
   	    <output>
   		    <fault type="int" length="2" />
   	        <part name="slotid" type="int" length="2" />
            <part name="subslotid" type="byte" length="1"/>
            <part name="port" type="int" length="2"/>
            <part name="gid1" type="prototype" length="4"/>
            <part name="gid2" type="prototype" length="4"/>
   	    </output>
    </operation>   
    
    <!-- 查询外接时间电缆长度 -->
    <operation name="NSCMD_CFG_GET_PTP_CABLELENGTH" cmdid="36106" level="">
   	    <input>
   	        <part name="slotid" type="int" length="2" />
            <part name="subslotid" type="byte" length="1"/>
            <part name="port" type="int" length="2"/>
            <part name="trandirection" type="byte" length="1"/>
   	    </input>
   	    <output>
   		    <fault type="int" length="2" />
   	        <part name="slotid" type="int" length="2" />
            <part name="subslotid" type="byte" length="1"/>
            <part name="port" type="int" length="2"/>
            <part name="trandirection" type="byte" length="1"/>
            <part name="tranmode" type="byte" length="1"/>
            <part name="tranvalue" type="int" length="2"/>
   	    </output>
    </operation>  	
    
    <!-- 设置外接时间电缆长度 -->
    <operation name="NSCMD_CFG_SET_PTP_CABLELENGTH" cmdid="36105" level="">
   	    <input>
   	        <part name="slotid" type="int" length="2" />
            <part name="subslotid" type="byte" length="1"/>
            <part name="port" type="int" length="2"/>
            <part name="trandirection" type="byte" length="1"/>
            <part name="tranmode" type="byte" length="1"/>
            <part name="tranvalue" type="int" length="2"/>
   	    </input>
   	    <output>
   		    <fault type="int" length="2" />
   	    </output>
    </operation>    
    <!-- 设置线缆传输偏差 -->
    <operation name="NSCMD_CFG_SET_PTP_LINEWARP" cmdid="36107" level="">
   	    <input>
   	        <part name="slotid" type="int" length="2" />
            <part name="subslotid" type="byte" length="1"/>
            <part name="port" type="int" length="2"/>
            <part name="warpmode" type="byte" length="1"/>
            <part name="warpdirection" type="byte" length="1"/>
            <part name="warpvalue" type="long" length="4"/>
   	    </input>
   	    <output>
   		    <fault type="int" length="2" />
   	    </output>
    </operation>
    
    <!-- 查询线缆传输偏差 -->
    <operation name="NSCMD_CFG_GET_PTP_LINEWARP" cmdid="36108" level="">
   	    <input>
   	        <part name="slotid" type="int" length="2" />
            <part name="subslotid" type="byte" length="1"/>
            <part name="port" type="int" length="2"/>
   	    </input>
   	    <output>
   		    <fault type="int" length="2" />
   	        <part name="slotid" type="int" length="2" />
            <part name="subslotid" type="byte" length="1"/>
            <part name="port" type="int" length="2"/>
            <part name="warpmode" type="byte" length="1"/>
            <part name="warpdirection" type="byte" length="1"/>
            <part name="warpvalue" type="long" length="4"/>
   	    </output>
    </operation>
    
		<!--*************************** 线性复用段 *****************************-->
		<!-- 创建线性复用段保护组 -->
		<operation name="NSCMD_PTN_LMS_ADD_PG" cmdid="31317" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
				<part name="protectionType" type="byte" length="1" />
				<part name="wordPathNum" type="byte" length="1" default="1" />
				<part name="revertiveMode" type="byte" length="1" />
				<part name="switchMode" type="byte" length="1" />
			</input>
			<output>
				<fault type="int" length="2" />
			</output>
		</operation>   
		<!-- 删除线性复用段 -->
		<operation name="NSCMD_PTN_LMS_DEL_PG" cmdid="31318" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
			</input>
			<output>
				<fault type="int" length="2" />
			</output>
		</operation>   
		<!-- 查询所有的线性复用段保护组 -->
		<operation name="NSCMD_PTN_LMS_GET_PG" cmdid="31319" level="">
			<input>
			</input>
			<output>
				<part name="groupID" type="byte" length="1" />
				<part name="protectionType" type="byte" length="1" />
				<part name="wordPathNum" type="byte" length="1" default="1" />
				<part name="revertiveMode" type="byte" length="1" />
				<part name="switchMode" type="byte" length="1" />
				<part name="activeFlag" type="byte" length="1" />
				<fault type="int" length="2" />
			</output>
		</operation>   
		<!-- 设置线性复用段保护组等待恢复时间 -->
		<operation name="NSCMD_PTN_LMS_SET_WTRTIME" cmdid="31320" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
				<part name="revertiveTime" type="int" length="2" />
			</input>
			<output>
				<fault type="int" length="2" />
			</output>
		</operation>   
		<!-- 查询线性复用段保护组等待恢复时间 -->
		<operation name="NSCMD_PTN_LMS_GET_WTRTIME" cmdid="31321" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
			</input>
			<output>
				<part name="groupID" type="byte" length="1" />
				<part name="revertiveTime" type="int" length="2" />
				<fault type="int" length="2" />
			</output>
		</operation>   
		<!-- 设置线性复用段保护组SD倒换使能标志 -->
		<operation name="NSCMD_PTN_LMS_SET_SDFLAG" cmdid="31322" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
				<part name="sdEnable" type="byte" length="1" />
			</input>
			<output>
				<fault type="int" length="2" />
			</output>
		</operation>   
		<!-- 查询线性复用段保护组SD倒换使能标志间 -->
		<operation name="NSCMD_PTN_LMS_GET_SDFLAG" cmdid="31323" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
			</input>
			<output>
				<part name="groupID" type="byte" length="1" />
				<part name="sdEnable" type="byte" length="1" />
				<fault type="int" length="2" />
			</output>
		</operation>   
   
		<!-- 设置线性复用段保护单元映射关系 -->
		<operation name="NSCMD_PTN_LMS_SET_PUMAP_NEW" cmdid="33932" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
				<part name="protectUnit" type="byte" length="1" />
				<part name="slotid" type="int" length="2" />
				<part name="subslotid" type="byte" length="1" />
				<part name="port" type="byte" length="1" />
				<part name="au4Used" type="prototype" length="32" default="0" />
			</input>
			<output>
				<fault type="int" length="2" />
			</output>
		</operation>   
		<!-- 查询线性复用段保护单元映射关系 -->
		<operation name="NSCMD_PTN_LMS_GET_PUMAP_NEW" cmdid="33933" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
			</input>
			<output>
				<part name="groupID" type="byte" length="1" />
				<part name="protectUnit" type="byte" length="1" />
				<part name="slotid" type="int" length="2" />
				<part name="subslotid" type="byte" length="1" />
				<part name="port" type="byte" length="1" />
				<part name="au4Used" type="String" length="32" />
				<fault type="int" length="2" />
			</output>
		</operation>
		<!-- 启动线性复用段控制器倒换协议 -->
		<operation name="NSCMD_PTN_LMS_START_PROTOCOL" cmdid="31324" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
			</input>
			<output>
				<fault type="int" length="2" />
			</output>
		</operation>   
		<!-- 停止线性复用段控制器倒换协议 -->
		<operation name="NSCMD_PTN_LMS_STOP_PROTOCOL" cmdid="31325" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
			</input>
			<output>
				<fault type="int" length="2" />
			</output>
		</operation>   
		<!-- 线性复用段外部倒换命令 -->
		<operation name="NSCMD_PTN_LMS_EXT_SWCMD" cmdid="31326" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
				<part name="protectUnit" type="byte" length="1" />
				<part name="switchType" type="byte" length="1" />
			</input>
			<output>
				<fault type="int" length="2" />
			</output>
		</operation>   
		<!-- 查询线性复用段保护组倒换状态 -->
		<operation name="NSCMD_PTN_LMS_GET_SWSTA2" cmdid="31327" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
			</input>
			<output>
				<part name="groupID" type="byte" length="1" />
				<part name="protectUnit" type="byte" length="1" />
				<part name="switchStatue" type="byte" length="1" />
				<part name="protocolStatus" type="byte" length="1" />
				<part name="protectedUnit" type="byte" length="1" />
				<part name="endIndication" type="byte" length="1" />
				<part name="reserveByte" type="String" length="4" />
				<fault type="int" length="2" />
			</output>
		</operation>   
		<!-- 设置线性复用段协议类型 -->
		<operation name="NSCMD_PTN_LMS_SET_PROTOCOL" cmdid="31334" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
				<part name="protocolType" type="byte" length="1" />
			</input>
			<output>
				<fault type="int" length="2" />
			</output>
		</operation>   
		<!-- 查询线性复用段协议类型 -->
		<operation name="NSCMD_PTN_LMS_GET_PROTOCOL" cmdid="31335" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
			</input>
			<output>
				<part name="groupID" type="byte" length="1" />
				<part name="protocolType" type="byte" length="1" />
				<fault type="int" length="2" />
			</output>
		</operation>   
		<!-- 设置保护组恢复模式  -->
		<operation name="NSCMD_PTN_LMS_SET_RESTOREMODE" cmdid="31328" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
				<part name="revertiveMode" type="byte" length="1" />
			</input>
			<output>
				<fault type="int" length="2" />
			</output>
		</operation>      
		<!-- 设置线性复用段单双端倒换模式  -->
		<operation name="NSCMD_PTN_LMS_SET_SWMODE" cmdid="31332" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
				<part name="switchMode" type="byte" length="1" />
			</input>
			<output>
				<fault type="int" length="2" />
			</output>
		</operation>   
      
   
		<!-- 以下接口没有CmdID，后续要修改-->   
		<!-- 设置线性复用段SF/SD优先级倒换标志 -->
		<operation name="NSCMD_PTN_LMS_SET_K_LEVEL" cmdid="31340" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
				<part name="switchTag" type="byte" length="1" />
			</input>
			<output>
				<fault type="int" length="2" />
			</output>
		</operation>   
		<!-- 查询线性复用段SF/SD优先级倒换标志 -->
		<operation name="NSCMD_PTN_LMS_GET_K_LEVEL" cmdid="31341" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
			</input>
			<output>
				<part name="groupID" type="byte" length="1" />
				<part name="switchTag" type="byte" length="1" />
				<fault type="int" length="2" />
			</output>
		</operation>
		<!-- 设置线性复用段K2字节后三位倒换模式指示 -->
		<operation name="NSCMD_PTN_LMS_SET_K2MODE" cmdid="31342" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
				<part name="switchIndication" type="byte" length="1" />
			</input>
			<output>
				<fault type="int" length="2" />
			</output>
		</operation>   
		<!-- 查询线性复用段K2字节后三位倒换模式指示 -->
		<operation name="NSCMD_PTN_LMS_GET_K2MODE" cmdid="31343" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
			</input>
			<output>
				<part name="groupID" type="byte" length="1" />
				<part name="switchIndication" type="byte" length="1" />
				<fault type="int" length="2" />
			</output>
		</operation>  
		<!-- 查询线性复用段保护组激活状态 -->
		<operation name="NSCMD_PTN_LMS_GET_ACTIVE" cmdid="33765" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
			</input>
			<output>
				<part name="groupID" type="byte" length="1" />
				<part name="activationStatus" type="byte" length="1" />
				<fault type="int" length="2" />
			</output>
		</operation>  
		<!-- 设置线性复用段保护组激活状态 -->
		<operation name="NSCMD_PTN_LMS_SET_ACTIVE" cmdid="33764" level="">
			<input>
				<part name="groupID" type="byte" length="1" />
				<part name="activationStatus" type="byte" length="1" />
			</input>
			<output>
				<fault type="int" length="2" />
			</output>
		</operation>
		<operation name="NSCMD_SERVICE_GET_ETHVUNI" cmdid="33929" level="">
			<input>
				<part name="servType" type="byte" length="1" />
				<part name="servIndex" type="long" length="4" />
				<part name="vuniId" type="int" length="2" />
			</input>
			<output>
				<part name="servType" type="byte" length="1" />
				<part name="servIndex" type="long" length="4" />
				<part name="vuniId" type="int" length="2" />
				<part name="role" type="byte" length="1" />
				<part name="slotid" type="int" length="2" />
				<part name="subslotid" type="byte" length="1" />
				<part name="port" type="int" length="2" />
				<part name="tagNum" type="int" length="2" />
				<part name="tagIds" type="prototype" />
				<fault type="int" length="2" />
			</output>
		</operation>
		<operation name="NSCMD_SERVICE_GET_EVNNI" cmdid="32412" level="">
			<input>
				<part name="servType" type="byte" length="1" />
				<part name="servIndex" type="long" length="4" />
				<part name="vnniId" type="int" length="2" />
			</input>
			<output>
				<fault type="int" length="2" />
				<part name="servType" type="byte" length="1" />
				<part name="servIndex" type="long" length="4" />
				<part name="vnniId" type="int" length="2" />
				<part name="role" type="byte" length="1" />
				<part name="carrierType" type="byte" length="1" />
				<part name="slotid" type="long" length="4" />
				<part name="subslotid" type="long" length="4" />
				<part name="port" type="long" length="4" />
			</output>
		</operation>
		<operation name="NSCMD_SERVICE_GET_QINQLINK" cmdid="32440" level="">
			<input>
				<part name="qinqIndex" type="long" length="4" />
			</input>
			<output>
				<fault type="int" length="2" />
				<part name="qinqLinkID" type="long" length="4" />
				<part name="board" type="int" length="2" />
				<part name="subboard" type="byte" length="1" />
				<part name="port" type="int" length="2" />
				<part name="svlanID" type="int" length="2" />
			</output>
		</operation>




		<!-- 查询逻辑端口光口类型-->
        <operation name="NSCMD_CFG_SUBBD_GET_PORT_WBID" cmdid="35193" level="">
            <input>
                <part name="slotid" type="int" length="2"/>
                <part name="subslotid" type="byte" length="1" default="255" />
                <part name="port" type="int" length="2"/>
            </input>
            <output>
                <fault code="" type="int" length="2"/>
                <part name="slotid" type="int" length="2"/>
                <part name="subslotid" type="byte" length="1"/>
                <part name="port" type="int" length="2"/>
                <part name="ATTR_ETHOVERPTN_LOGIC_PORTTYPE" type="byte" length="1"/>
                <part name="speedLevel" type="byte" length="1"/>
            </output>
        </operation>

        <operation name="NSCMD_CFG_REPLACE_PORT" cmdid="28773" level="">
        	<input>
                <part name="slotid" type="int" length="2"/>
                <part name="subslotid" type="byte" length="1" default="255" />
                <part name="port" type="byte" length="1"/>
                <part name="ATTR_ETHOVERPTN_LOGIC_PORTTYPE" type="byte" length="1"/>
                <part name="speedLevel" type="byte" length="1"/>
            </input>
            <output>
                <fault code="" type="int" length="2"/>
            </output>
        </operation>

        <!-- 查询以太网端口的光口类型-->
		<operation name="NSCMD_PTNETY_GET_OIF_TYPE" cmdid="33802" level="">
			<input>
				<part name="slotid" type="int" length="2" />
				<part name="subslotid" type="byte" length="1" default="255" />
				<part name="port" type="int" length="2" />
			</input>
			<output>
				<part name="slotid" type="int" length="2" />
				<part name="subslotid" type="byte" length="1" default="255" />
				<part name="port" type="int" length="2" />
				<part name="ATTR_ETHOVERPTN_MAC_PORTTYPE" type="byte" length="1" />
				<fault type="int" length="2" />
			</output>
		</operation>

	</portType>
</definitions>
