def _generate_dp_mac(self, dp_type, dp_index):
    if (dp_type == T1_DP):
        return (T1_DP_MAC_PREFIX + '{:02x}'.format((dp_index + 1)))
    if (dp_type == T2_DP):
        return (T2_DP_MAC_PREFIX + '{:02x}'.format((dp_index + 1)))
    raise Exception(('Unknown dp_type: %s' % dp_type))
def _generate_dp_mac(self, dp_type, dp_index):
    if (dp_type == T1_DP):
        return (T1_DP_MAC_PREFIX + '{:02x}'.format((dp_index + 1)))
    if (dp_type == T2_DP):
        return (T2_DP_MAC_PREFIX + '{:02x}'.format((dp_index + 1)))
    raise Exception(('Unknown dp_type: %s' % dp_type))