#NEWLINE# def get_setting_type( ns , setting ) : #NEWLINE# #INDENT# '\n    Get type of the setting\n\n    :param LMI_IPAssignmentSettingData setting: network setting\n    :return: type of setting\n    :rtype: SETTING_TYPE_* constant\n    ' #NEWLINE# if ( setting . classname == 'LMI_BondingSlaveSettingData' ) : #NEWLINE# #INDENT# return SETTING_TYPE_BOND_SLAVE #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( setting . classname == 'LMI_BondingMasterSettingData' ) : #NEWLINE# #INDENT# return SETTING_TYPE_BOND_MASTER #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( setting . classname == 'LMI_BridgingSlaveSettingData' ) : #NEWLINE# #INDENT# return SETTING_TYPE_BRIDGE_SLAVE #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( setting . classname == 'LMI_BridgingMasterSettingData' ) : #NEWLINE# #INDENT# return SETTING_TYPE_BRIDGE_MASTER #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return SETTING_TYPE_ETHERNET